Skip to main content

ASPxClientHtmlEditorCommandStyleSettings.marginBottom Property

Gets or sets an element’s bottom margin.

Declaration

marginBottom: string

Property Value

Type Description
string

A string that specifies an element’s bottom 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