ASPxClientHtmlEditorInsertAudioCommandArguments Class

Contains settings related to the ASPxClientCommandConsts.INSERTAUDIO_COMMAND command parameter.

Declaration

declare class ASPxClientHtmlEditorInsertAudioCommandArguments extends ASPxClientHtmlEditorChangeHtml5MediaElementCommandArguments

Remarks

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

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


// Inserting a new audio element at the current cursor position
var args = new ASPxClientHtmlEditorInsertAudioCommandArguments(htmlEditor);
args.src = "/Content/SampleAudio.mp3";
htmlEditor.ExecuteCommand(args.GetCommandName(), args);
See Also