ASPxClientHtmlEditorInsertImageCommandArguments.align Property
In This Article
Determines the position of the target image.
#Declaration
TypeScript
align: string
#Property Value
Type | Description |
---|---|
string | A string value defining the position of the target image. |
#Remarks
Valid values are:
- “right”: aligns the element to the right;
- “center”: aligns the element to the center;
- “left”: aligns the element to the left;
// Inserting a new image at the current cursor position
var args = new ASPxClientHtmlEditorInsertImageCommandArguments(htmlEditor, null);
args.align = "center";
args.alt = "Some alternate text";
args.src = "/Content/SampleImage.png";
args.styleSettings.width = "400px";
args.useFloat = true;
htmlEditor.ExecuteCommand(ASPxClientCommandConsts.INSERTIMAGE_COMMAND, args);
See Also