ASPxClientCommandConsts.CHANGEFLASH_COMMAND Property
In This Article
Identifies a command that changes the selected flash element.
#Declaration
TypeScript
static CHANGEFLASH_COMMAND: string
#Property Value
Type | Description |
---|---|
string | Value: “changeflash” |
#Remarks
The CHANGEFLASH_COMMAND property can be used in the followng ways.
- In the ASPxClientHtmlEditor.CommandExecuted event — to determine the action performed by an end-user. If the ASPxClientHtmlEditorCommandEventArgs.commandName event parameter returns the CHANGEFLASH_COMMAND property value, this means that an end-user has clicked the OK button within the Change Flash dialog.
In the ASPxClientHtmlEditor.ExecuteCommand method — to execute the command manually.
In this case, the method requires an additional parameter, which is an object of the ASPxClientHtmlEditorChangeFlashCommandArguments type. To create a parameter, use the ASPxClientHtmlEditor.CreateChangeMediaElementCommandArguments method. You can also call the ASPxClientHtmlEditorChangeMediaElementCommandArguments.GetCommandName method of the created parameter to obtain the command name.
// Changing the selected flash element's dimensions and alignment var flash = htmlEditor.GetSelection().GetSelectedElement(); var args = htmlEditor.CreateChangeMediaElementCommandArguments(flash); args.align = "center"; args.styleSettings.width = "400px"; args.styleSettings.height = "100px"; htmlEditor.ExecuteCommand(args.GetCommandName(), args);
Note
This command is available only in the Design View.
See Also