TTMSFNCMemoSources.AddSource Method
Creates a new source buffer from a text string with optional language and name settings, and appends it to the collection.
API unit family: TMSFNCMemo
Declaring type: TTMSFNCMemoSources
Syntax
function AddSource(AText: string=''; ALanguage: TTMSFNCMemoLanguage = mlPascal;AName:string=''): TTMSFNCMemoSource; overload;
Parameters
| Name | Description |
|---|---|
AText |
Initial text content of the new source buffer. |
ALanguage |
Syntax highlighting language applied to the new source; defaults to Pascal. |
AName |
Display name assigned to the new source buffer. |
Returns
The newly created TTMSFNCMemoSource instance.