TTMSFNCMemoLanguageFileExtensionMap Class
A collection of file-extension-to-language mappings used to automatically detect the language mode when opening files in the editor.
API unit family: TMSFNCMemo
Inherits from: TTMSFNCOwnedCollection
Syntax
TTMSFNCMemoLanguageFileExtensionMap = class(TTMSFNCOwnedCollection)
Properties
| Name | Description |
|---|---|
| Items | Returns the extension mapping at the given zero-based index. |
Methods
| Name | Description |
|---|---|
| Add | Appends a new empty extension mapping to the collection. |
| Insert | Inserts a new empty extension mapping at the specified position. |
| MatchLanguage | Returns the index of the mapping entry whose extension matches the specified file extension, or -1 if no match is found. |