Skip to main content

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