Back to Devexpress

ASPxClientHtmlEditorInsertFlashCommandArguments Class

aspnet-js-aspxclienthtmleditorinsertflashcommandarguments.md

latest2.2 KB
Original Source

ASPxClientHtmlEditorInsertFlashCommandArguments Class

Contains settings related to the ASPxClientCommandConsts.INSERTFLASH_COMMAND command parameter.

Declaration

ts
declare class ASPxClientHtmlEditorInsertFlashCommandArguments extends ASPxClientHtmlEditorChangeMediaElementCommandArguments

Remarks

When the ASPxClientHtmlEditor.ExecuteCommand method is used to execute the ASPxClientCommandConsts.INSERTFLASH_COMMAND command manually, it requires an additional parameter of the ASPxClientHtmlEditorInsertFlashCommandArguments type.

To create an instance of this class, use the ASPxClientHtmlEditorInsertFlashCommandArguments constructor. Specify all required properties of the newly created object and pass the resulting parameter to the ASPxClientHtmlEditor.ExecuteCommand method.

javascript
// Inserting a new flash element at the current cursor position
var args = new ASPxClientHtmlEditorInsertFlashCommandArguments(htmlEditor);
args.allowFullscreen = false;
args.autoPlay = true;
args.enableFlashMenu = false;
args.loop = false;
args.quality = "best";
args.src = "/Content/SampleFlash.swf";
htmlEditor.ExecuteCommand(args.GetCommandName(), args);

Inheritance

ASPxClientHtmlEditorCommandArguments ASPxClientHtmlEditorChangeMediaElementCommandArguments ASPxClientHtmlEditorInsertFlashCommandArguments ASPxClientHtmlEditorChangeFlashCommandArguments

See Also

Client-Side Commands

ASPxClientHtmlEditorInsertFlashCommandArguments Members