ASPxClientHtmlEditorChangeMediaElementCommandArguments.GetCommandName Method
In This Article
Returns the name of the client-side command corresponding to the parameter.
#Declaration
TypeScript
GetCommandName(): string
#Returns
Type | Description |
---|---|
string | One of the ASPx |
#Remarks
The following table lists the ASPxClientHtmlEditorChangeMediaElementCommandArguments class descendants and the client-side command names corresponding to each of them.
A parameter type | The name of the command |
---|---|
ASPx |
“changeaudio” (ASPx |
ASPx |
“changeflash” (ASPx |
ASPx |
“changevideo” (ASPx |
ASPx |
“changeyoutubevideo” (ASPx |
// Changing the selected video element's margins
var video = htmlEditor.GetSelection().GetSelectedElement();
var args = htmlEditor.CreateChangeMediaElementCommandArguments(video);
args.styleSettings.marginTop = "10px";
args.styleSettings.marginRight = "5px";
args.styleSettings.marginBottom = "15px";
args.styleSettings.marginLeft = "20px";
htmlEditor.ExecuteCommand(args.GetCommandName(), args);
See Also