ASPxClientHtmlEditorChangeMediaElementCommandArguments.align Property
In This Article
Determines the position of the target media element.
#Declaration
TypeScript
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