Class ImageCommandsArgs
The class is used to configure image settings in the SfRichTextEditor.
Inheritance
Namespace: Syncfusion.Blazor.RichTextEditor
Assembly: Syncfusion.Blazor.dll
Syntax
public class ImageCommandsArgs : Object
Remarks
This class allows configuration of properties like URL, dimensions, and styling for images inserted into the editor.
Constructors
ImageCommandsArgs()
Declaration
public ImageCommandsArgs()
Properties
AltText
Gets or sets the alternate text attribute of the image.
Declaration
public string AltText { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string for alternative text descriptions. |
Remarks
AltText is used to offer descriptive details on image content, especially useful for accessibility.
CssClass
Gets or sets the class name to be added to the image to customize it.
Declaration
public string CssClass { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string of CSS classes for styling. |
Remarks
CssClass enables distinctive or branded styles to be applied to image tags directly within the editor.
Height
Gets or sets the height of the image.
Declaration
public CommandsHeight Height { get; set; }
Property Value
Type | Description |
---|---|
CommandsHeight | An instance of CommandsHeight assigning vertical size. |
Remarks
Height affects how much vertical space an inserted image occupies in editor content.
Url
Gets or sets the URL to be set in the image's src attribute.
Declaration
public string Url { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string representing the image source URL. |
Remarks
The Url property specifies the source location for the image, affecting what is rendered in the editor.
Width
Gets or sets the width of the image.
Declaration
public CommandsWidth Width { get; set; }
Property Value
Type | Description |
---|---|
CommandsWidth | An instance of CommandsWidth defining dimensions. |
Remarks
Width determines the rendered breadth of image elements within the editor viewport.