ChangeFontNameCommand.execute(fontName) Method
In This Article
Executes the ChangeFontNameCommand command with the specified parameter.
#Declaration
TypeScript
execute(
fontName: string
): boolean
#Parameters
Name | Type | Description |
---|---|---|
font |
string | A string specifying the font name. |
#Returns
Type | Description |
---|---|
boolean |
|
#Remarks
You can get the full list of the supported fonts via calling the following command:
richEdit.commands.changeFontName.fontNames;
Usage example:
richEdit.commands.changeFontName.execute("Arial");
richEdit.commands.changeFontName.execute(richEdit.commands.changeFontName.fontNames[1]);
See Also