TTMSFNCMemoThemeRules.Add Method
Appends a new empty token coloring rule to the collection.
API unit family: TMSFNCMemoCustomTheme
Declaring type: TTMSFNCMemoThemeRules
Overloads
Overload 1
Appends a new empty token coloring rule to the collection.
function Add: TTMSFNCMemoThemeRule; overload;
Returns
The newly created TTMSFNCMemoThemeRule instance.
Overload 2
Appends a new token coloring rule with the specified scope and foreground color.
function Add(AToken: string; AForeground: TTMSFNCgraphicscolor): TTMSFNCMemoThemeRule; overload;
Parameters
| Name | Description |
|---|---|
AToken |
Token scope string targeted by the rule. |
AForeground |
Foreground color to apply to matching tokens. |
Returns
The newly created TTMSFNCMemoThemeRule instance.
Overload 3
Appends a new token coloring rule with the specified scope, foreground color, and font style.
function Add(AToken: string; AForeground: TTMSFNCgraphicscolor; AFontStyle: TFontStyles): TTMSFNCMemoThemeRule; overload;
Parameters
| Name | Description |
|---|---|
AToken |
Token scope string targeted by the rule. |
AForeground |
Foreground color to apply to matching tokens. |
AFontStyle |
Font style (bold, italic, underline) to apply to matching tokens. |
Returns
The newly created TTMSFNCMemoThemeRule instance.
Overload 4
Appends a new token coloring rule with the specified scope and font style.
function Add(AToken: string; AFontStyle: TFontStyles): TTMSFNCMemoThemeRule; overload;
Parameters
| Name | Description |
|---|---|
AToken |
Token scope string targeted by the rule. |
AFontStyle |
Font style (bold, italic, underline) to apply to matching tokens. |
Returns
The newly created TTMSFNCMemoThemeRule instance.