Table of Contents

TTMSFNCMemoCustomLanguageKeys.Add Method

Appends a new empty key definition to the collection.

API unit family: TMSFNCMemoCustomLanguage Declaring type: TTMSFNCMemoCustomLanguageKeys

Overloads

Overload 1

Appends a new empty key definition to the collection.

function Add: TTMSFNCMemoCustomLanguageKey; overload;

Returns

The newly created TTMSFNCMemoCustomLanguageKey instance.

Overload 2

Appends a new key definition with the specified name and regex pattern value.

function Add(AName: string; AValueRegex: string): TTMSFNCMemoCustomLanguageKey; overload;

Parameters

Name Description
AName Unique name of the key, referenced in rules as @AName.
AValueRegex Regular expression pattern that forms the key's value.

Returns

The newly created TTMSFNCMemoCustomLanguageKey instance.

Overload 3

Appends a new key definition with the specified name and a list of literal string values.

function Add(AName: string; AValueList: array of string): TTMSFNCMemoCustomLanguageKey; overload;

Parameters

Name Description
AName Unique name of the key, referenced in rules as @AName.
AValueList Array of literal strings (e.g. keywords) that make up the key's value list.

Returns

The newly created TTMSFNCMemoCustomLanguageKey instance.