Zur Startseite

JRSpellChecker

Zur Homepage

SelectionMethod() As selectiontypesb

Funktion:

Legt die Art der Markierung fest, oder gibt diese zurück.

       

ico_syntax   Syntax:

JRSpell1.SelectionMethod = mystyle

         

ico_weitere Rückgabewert:


keiner

löst kein Event aus.

Beispiel:

    Private Sub Option1_Click(Index As Integer)
    Select Case Index
    Case 0
      JRSpell1.ClearAllSelections RichTextBox1.hWnd,
    Rtf_Control
      JRSpell1.SelectionMethod = Sel_BackColor

    Case 1
      JRSpell1.ClearAllSelections RichTextBox1.hWnd,
    Rtf_Control
      JRSpell1.SelectionMethod = Sel_DoubleUnderline
    End Select
    JRSpell1.SpellCheckDocument RichTextBox1.hWnd, Rtf_Control
    End Sub

    Public Enum selectiontypesb
                Sel_BackColor=0
                Sel_DoubleUnderline=1
                Sel_TwigglyUnderline=2
    'Only for TX-Control Ver.8.0 or higher
               
    Sel_ForeColor=3
                Sel_nothing = 10

    End Enum

    Ab Version V2.4 kann in Verbindung mit Sel_ForeColor über JRSpell1.RestoreForeColor die Farbe für den i.O geprüften Text vorgegeben werden.