Skip to main content
A newer version of this page is available. .

ASPxClientHtmlEditorCommandStyleSettings.borderColor Property

Gets or sets a media element’s border color.

Declaration

borderColor: string

Property Value

Type Description
string

A string that specifies a border color in any correct format.

Remarks

// Changing the selected image border settings
var image = htmlEditor.GetSelection().GetSelectedElement();
var args = new ASPxClientHtmlEditorChangeImageCommandArguments(htmlEditor, image);
args.styleSettings.borderColor = "red";
args.styleSettings.borderStyle = "solid";
args.styleSettings.dorderWidth = "8px";
htmlEditor.ExecuteCommand(ASPxClientCommandConsts.CHANGEIMAGE_COMMAND, args);
See Also