Skip to main content

ASPxClientHtmlEditorInsertImageCommandArguments.alt Property

Creates an alternate text for the target image.

Declaration

alt: string

Property Value

Type Description
string

A string that specifies an alternate text for the target image.

Remarks

// 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