ASPxClientHtmlEditorCommandStyleSettings.marginLeft Property
Gets or sets an element’s left margin.
Declaration
marginLeft: string
Property Value
Type | Description |
---|---|
string | A string that specifies an element’s left margin in any correct format. |
Remarks
// Changing the selected video element's margins
var video = htmlEditor.GetSelection().GetSelectedElement();
var args = htmlEditor.CreateChangeMediaElementCommandArguments(video);
args.styleSettings.marginTop = "10px";
args.styleSettings.marginRight = "5px";
args.styleSettings.marginBottom = "15px";
args.styleSettings.marginLeft = "20px";
htmlEditor.ExecuteCommand(args.GetCommandName(), args);
See Also