Class SelectionImageFormatModule
Represents the selection image format module in DocumentEditor.
Inheritance
Namespace: Syncfusion.Blazor.DocumentEditor
Assembly: Syncfusion.Blazor.DocumentEditor.dll
Syntax
public class SelectionImageFormatModule : Object
Constructors
SelectionImageFormatModule(SfDocumentEditor)
Initializes a new instance of the SelectionImageFormatModule class. Default constructor for SelectionImageFormatModule.
Declaration
public SelectionImageFormatModule(SfDocumentEditor baseComponent)
Parameters
Type | Name | Description |
---|---|---|
SfDocumentEditor | baseComponent | An DocumentEdiorComponent instance. |
Properties
DocumentEditor
DocumentEdiorComponent instance.
Declaration
protected SfDocumentEditor DocumentEditor { get; set; }
Property Value
Type |
---|
SfDocumentEditor |
Methods
GetAlternateTextAsync()
Gets the alternate text for an image.
Declaration
public Task<string> GetAlternateTextAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.String> | A System.Threading.Tasks.Task representing the asynchronous operation, that returns the alternate text of the image. |
GetHeightAsync()
Gets the height of the image.
Declaration
public Task<int> GetHeightAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Int32> | A System.Threading.Tasks.Task representing the asynchronous operation. |
GetWidthAsync()
Gets the width of the image.
Declaration
public Task<int> GetWidthAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Int32> | A System.Threading.Tasks.Task representing the asynchronous operation. |
ResizeAsync(Double, Double)
Resizes the image based on given size.
Declaration
public Task ResizeAsync(double width, double height)
Parameters
Type | Name | Description |
---|---|---|
System.Double | width | Specifies the image width. |
System.Double | height | Specifies the image height. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A System.Threading.Tasks.Task representing the asynchronous operation. |
SetAlternateTextAsync(String)
Sets the alternate text for an image.
Declaration
public void SetAlternateTextAsync(string alternateText)
Parameters
Type | Name | Description |
---|---|---|
System.String | alternateText | The alternate text to set for the image. |