The requested page is not available for the requested platform. You are viewing the content for Default platform.

ASPxClientHtmlEditorChangeMediaElementCommandArguments.id Property

Defines the HTML "id" attribute of the target media element.

Declaration

id: string

Property Value

Type Description
string

A string value which is a unique identifier for the element.

Remarks


// Changing the selected audio element's id and css class
var audio = htmlEditor.GetSelection().GetSelectedElement();
var args = htmlEditor.CreateChangeMediaElementCommandArguments(audio);
args.id = "myAudioNew";
args.styleSettings.className = "myCssClass";
htmlEditor.ExecuteCommand(args.GetCommandName(), args);
See Also