ASPxClientCommandConsts.FONTNAME_COMMAND Property
In This Article
Identifies a command that changes the font of the selected text.
#Declaration
TypeScript
static FONTNAME_COMMAND: string
#Property Value
Type | Description |
---|---|
string | Value: “fontname” |
#Remarks
The FONTNAME_COMMAND property can be used in the following ways.
- In the ASPxClientHtmlEditor.CommandExecuted event — to determine the toolbar or ribbon item clicked by an end-user. If the ASPxClientHtmlEditorCommandEventArgs.commandName event parameter returns the FONTNAME_COMMAND property value, this means that either the ToolbarFontNameEdit toolbar item or the HEFontNameRibbonCommand ribbon item (depending upon the toolbar mode used) has been manipulated by an end-user.
In the ASPxClientHtmlEditor.ExecuteCommand method — to execute the command manually.
In this case, the method requires an additional parameter, which is the new name of the font.
//changes the font of the selection to Verdana htmlEditor.ExecuteCommand(ASPxClientCommandConsts.FONTNAME_COMMAND, 'Verdana');
Note
This command is available only in the Design View.
See Also