Link Search Menu Expand Document

StyleEdit.Styling Method

Explanation Apply a style to the characters.
Call format StyleEdit1.Styling( styleNo, startPos, endPos )
Return value None
Arguments integer styleNo The style number to apply. The range is 0 to 30. It is necessary to define the style in advance with the SetStyle method and SetKeywordStyle method.
integer startPos Specifies the character position where the style will start to be applied. If -1 is specified, it will start from the beginning.
integer endPos Specifies the character position where the style application ends. If -1 is specified, it will be until the end of the sentence.
Exception Func-4 Invalid arguments
Example of use
    StyleEdit1.Styling(8, 10, 20);
    
Related item SetStyle, SetKeywordStyle method