Link Search Menu Expand Document

StyleEdit.SetStyle Method

Explanation Register the style in the style number.
Call format StyleEdit1.SetStyle( styleNo, fgColor [, bgColor [, fontFace [, fontKind [, fontSize [, hotSpot ] ] ] ] ] )
Return value None
Arguments integer styleNo The style number to register. The range is 9 to 30.
integer fgColor Specify the font color with a color constant.
integer bgColor Specify the background color with a color constant.
integer fontFace Specifies the decoration attributes of the font. The value follows the FontFace property.
integer fontKind Specifies the font type. The value follows the FontKind property.
integer fontSize Specifies the font size. The value follows the FontSize property.
boolean hotSpot Specify $TRUE if you want to specify hotspot attributes.
Exception Func-4
Example of use
    StyleEdit1.SetStyle(9, $BLUE, $RED, $FIXED, $FONT2, 14, $TRUE);
    
Related item SetKeywordStyle, ResetStyle method