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

ASPxClientHtmlEditorChangeMediaElementCommandArguments.align Property

Determines the position of the target media element.

Declaration

align: string

Property Value

Type Description
string

A string value indicating the position of the target media element.

Remarks

Valid values are:

  • "": resets the alingment;
  • "right": aligns the element to the right;
  • "center": aligns the element to the center;
  • "left": aligns the element to the left;

// Changing the selected flash element's dimensions and alignment
var flash = htmlEditor.GetSelection().GetSelectedElement();
var args = htmlEditor.CreateChangeMediaElementCommandArguments(flash);
args.align = "center";
args.styleSettings.width = "400px";
args.styleSettings.height = "100px";
htmlEditor.ExecuteCommand(args.GetCommandName(), args);
See Also