TTMSFNCMemoCodeCompletionItem Class
A single suggestion item in the code-completion list, specifying the label, kind, insert text, sort order, and optional documentation shown in the editor suggest widget.
API unit family: TMSFNCMemo
Inherits from: TCollectionItem
Syntax
TTMSFNCMemoCodeCompletionItem = class(TCollectionItem)
Properties
| Name | Description |
|---|---|
| Documentation | Markdown or plain-text documentation shown in the detail panel alongside the suggestion. |
| FilterText | Text used to filter this item against the typed prefix; defaults to Name when empty. |
| InsertText | Lines of text inserted into the editor when this completion item is accepted; supports snippet placeholders when InsertTextRules is itrInsertAsSnippet. |
| InsertTextRules | Rules applied to InsertText during insertion: itrInsertAsSnippet enables tab-stop placeholders; itrKeepWhitespace preserves indentation. |
| Kind | Icon category shown next to the item in the suggest widget (e.g. skKeyword, skFunction, skSnippet). |
| Name | Display label shown in the suggest widget dropdown for this completion item. |
| Preselect | When True, this item is highlighted and pre-selected in the suggestion list when it appears. |
| SortText | Text used to sort this item within the suggestion list; defaults to Name when empty. |