Platforms to show: All Mac Windows Linux Cross-Platform
ScintillaStyleMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Scintilla | MBS Scintilla Plugin | 22.0 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop only |
Styles are used to style the various text parts found via the lexer.
The lexer classifies words and assigns them a style, so you can now define how to style the words, e.g. bold keywords.
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.
- 22 properties
- property BackColor as Color
- property Bold as Boolean
- property CaseVisible as Integer
- property Changeable as Boolean
- property CheckMonospaced as Boolean
- property Description as String
- property EOLFilled as Boolean
- property Font as String
- property ForeColor as Color
- property HotSpot as Boolean
- property Identifiers as String
- property Italic as Boolean
- property Name as String
- property Parent as Variant
- property Size as Integer
- property SizeFractional as Integer
- property Style as Integer
- property Tag as Variant
- property Tags as String
- property Underline as Boolean
- property Visible as Boolean
- property Weight as Integer
- 2 methods
- method Constructor Private
- method TextWidth(style as Integer, text as String) as Integer
- 17 constants
Case Visibility
Constant | Value | Description |
---|---|---|
kCaseVisibleCamel | 3 |
Camel case. |
kCaseVisibleLower | 2 |
Uppercase letters. |
kCaseVisibleMixed | 0 |
Mixed case. |
kCaseVisibleUpper | 1 |
Uppercase letters. |
Font Weights
Constant | Value | Description |
---|---|---|
kFontWeightBold | 700 |
Bold font. |
kFontWeightNormal | 400 |
Normal font, not bold. |
kFontWeightSemiBold | 600 |
Semi bold. |
Common Styles
Constant | Value | Description |
---|---|---|
kStylesCommonBraceBad | 35 |
This style sets the display attributes used when marking an unmatched brace with the BraceBadLight method. |
kStylesCommonBraceLight | 34 |
This style sets the attributes used when highlighting braces with the BraceHighlight method and when highlighting the corresponding indentation with HighlightGuide. |
kStylesCommonCallTip | 38 |
Call tips normally use the font attributes defined by kStylesCommonDefault. Use of CallTipUseStyle causes call tips to use this style instead. Only the font face name, font size, foreground and background colours and character set attributes are used. |
kStylesCommonControlChar | 36 |
This style sets the font used when drawing control characters. Only the font, size, bold, italics, and character set attributes are used and not the colour attributes. See also: ControlCharSymbol method. |
kStylesCommonDefault | 32 |
This style defines the attributes that all styles receive when the StyleClearAll method is used. |
kStylesCommonFoldDisplayText | 39 |
This is the style used for drawing text tags attached to folded text. |
kStylesCommonIndentGuide | 37 |
This style sets the foreground and background colours used when drawing the indentation guides. |
kStylesCommonLastPredefined | 39 |
To make it easier for client code to discover the range of styles that are predefined, this is set to the style number of the last predefined style. |
kStylesCommonLineNumber | 33 |
This style sets the attributes of the text used to display line numbers in a line number margin. The background colour set for this style also sets the background colour for all margins that do not have any folding mask bits set. That is, any margin for which mask & kMaskFolders is 0. See Mask in ScintillaMarginMBS class for more about masks. |
kStylesCommonMax | 255 |
This is not a style but is the number of the maximum style that can be set. Styles between kStylesCommonLastPredefined and kStylesCommonMax may be used. |
This class has no sub classes.
Some methods using this class:
- DesktopScintillaControlMBS.SetStyling(length as Integer, style as ScintillaStyleMBS)
- DesktopScintillaControlMBS.SetStyling(start as Integer, length as Integer, style as ScintillaStyleMBS)
- DesktopScintillaControlMBS.Style(index as Integer) as ScintillaStyleMBS
- DesktopScintillaControlMBS.StyleAt(position as Integer) as ScintillaStyleMBS
- ScintillaControlMBS.SetStyling(length as Integer, style as ScintillaStyleMBS)
- ScintillaControlMBS.SetStyling(start as Integer, length as Integer, style as ScintillaStyleMBS)
- ScintillaControlMBS.Style(index as Integer) as ScintillaStyleMBS
- ScintillaControlMBS.StyleAt(position as Integer) as ScintillaStyleMBS
Some properties using for this class:
- DesktopScintillaControlMBS.AnnotationStyle(line as Integer) as ScintillaStyleMBS
- DesktopScintillaControlMBS.EOLAnnotationStyle(line as Integer) as ScintillaStyleMBS
- DesktopScintillaControlMBS.MarginStyle(Line as Integer) as ScintillaStyleMBS
- ScintillaControlMBS.AnnotationStyle(line as Integer) as ScintillaStyleMBS
- ScintillaControlMBS.EOLAnnotationStyle(line as Integer) as ScintillaStyleMBS
- ScintillaControlMBS.MarginStyle(Line as Integer) as ScintillaStyleMBS
Some examples using this class:
Blog Entries
Release notes
- Version 22.0
The items on this page are in the following plugins: MBS Scintilla Plugin.
ScintillaSpanMBS - SCNAccelerationConstraintMBS