Table of Contents

TTMSFNCMemoCodeCompletion.Add Method

Appends a new empty completion item to the collection.

API unit family: TMSFNCMemo Declaring type: TTMSFNCMemoCodeCompletion

Overloads

Overload 1

Appends a new empty completion item to the collection.

function Add: TTMSFNCMemoCodeCompletionItem; overload;

Returns

The newly created TTMSFNCMemoCodeCompletionItem instance.

Overload 2

Appends a completion item with the specified label, kind, insert text, insert rules, and optional documentation.

function Add(AName: string; AKind: TTMSFNCMemoSuggestionKind = skText; AInsertText: string = ''; AInsertTextRules: TTMSFNCMemoSuggestionInsertTextRule = itrNone; ADocumentation: string = ''): TTMSFNCMemoCodeCompletionItem; overload;

Parameters

Name Description
AName Display label for the completion item.
AKind Icon category of the item in the suggest widget.
AInsertText Text inserted into the editor when the item is accepted.
AInsertTextRules Rules applied during insertion (e.g. snippet mode).
ADocumentation Optional documentation shown next to the suggestion.

Returns

The newly created TTMSFNCMemoCodeCompletionItem instance.