ASPxClientCommandConsts.EXPORT_COMMAND Property
In This Article
Identifies a command that exports the html editor content.
#Declaration
TypeScript
static EXPORT_COMMAND: string
#Property Value
Type | Description |
---|---|
string | Value: “export” |
#Remarks
The EXPORT_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 EXPORT_COMMAND property value, this means that either the ToolbarExportDropDownButton toolbar item or one of the HERibbonDropDownCommandBase descendant’s ribbon items (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 export format. Available formats are represented by the HtmlEditorExportFormat enumeration
//exports the content into a rich text document htmlEditor.ExecuteCommand(ASPxClientCommandConsts.EXPORT_COMMAND, "Rtf");
See Also