Skip to main content
Table of Contents

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.

FMX.TMSFNCMemoCustomTheme.hppPascalC++
function Add: TTMSFNCMemoThemeRule; overload;
HIDESBASE TTMSFNCMemoThemeRule* __fastcall Add()/* overload */;

Returns

The newly created TTMSFNCMemoThemeRule instance.

Overload 2

Appends a new token coloring rule with the specified scope and foreground color.

FMX.TMSFNCMemoCustomTheme.hppPascalC++
function Add(AToken: string; AForeground: TTMSFNCgraphicscolor): TTMSFNCMemoThemeRule; overload;
HIDESBASE TTMSFNCMemoThemeRule* __fastcall Add(System::UnicodeString AToken, Fmx::Tmsfncgraphicstypes::TTMSFNCGraphicsColor AForeground)/* 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.

FMX.TMSFNCMemoCustomTheme.hppPascalC++
function Add(AToken: string; AForeground: TTMSFNCgraphicscolor; AFontStyle: TFontStyles): TTMSFNCMemoThemeRule; overload;
HIDESBASE TTMSFNCMemoThemeRule* __fastcall Add(System::UnicodeString AToken, Fmx::Tmsfncgraphicstypes::TTMSFNCGraphicsColor AForeground, System::Uitypes::TFontStyles AFontStyle)/* 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.

FMX.TMSFNCMemoCustomTheme.hppPascalC++
function Add(AToken: string; AFontStyle: TFontStyles): TTMSFNCMemoThemeRule; overload;
HIDESBASE TTMSFNCMemoThemeRule* __fastcall Add(System::UnicodeString AToken, System::Uitypes::TFontStyles AFontStyle)/* 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.