Table of Contents

TTMSFNCMemoLanguageFileExtensionMap.MatchLanguage Method

Returns the index of the mapping entry whose extension matches the specified file extension, or -1 if no match is found.

API unit family: TMSFNCMemo Declaring type: TTMSFNCMemoLanguageFileExtensionMap

Syntax

function MatchLanguage(AExtension: string): Integer;

Parameters

Name Description
AExtension File extension to look up (without a leading dot).

Returns

Zero-based index of the matching entry, or -1 if no entry matches.