Class ImageEditorTextSettings
Represents a class that contains the settings for text annotation view.
Inherited Members
Namespace: Syncfusion.Maui.ImageEditor
Assembly: Syncfusion.Maui.ImageEditor.dll
Syntax
public class ImageEditorTextSettings : ImageEditorAnnotationSettings
Constructors
ImageEditorTextSettings()
Initializes a new instance of the ImageEditorTextSettings class.
Declaration
public ImageEditorTextSettings()
Fields
BackgroundProperty
Identifies the Background dependency property.
Declaration
public static readonly BindableProperty BackgroundProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for Background dependency property. |
IsEditableProperty
Identifies the IsEditable dependency property.
Declaration
public static readonly BindableProperty IsEditableProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for IsEditable dependency property. |
TextAlignmentProperty
Identifies the TextAlignment dependency property.
Declaration
public static readonly BindableProperty TextAlignmentProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for TextAlignment dependency property. |
TextStyleProperty
Identifies the TextStyle dependency property.
Declaration
public static readonly BindableProperty TextStyleProperty
Field Value
Type | Description |
---|---|
Microsoft.Maui.Controls.BindableProperty | The identifier for TextStyle dependency property. |
Properties
Background
Gets or Sets the text annotation background color.
Declaration
public Brush Background { get; set; }
Property Value
Type |
---|
Microsoft.Maui.Controls.Brush |
IsEditable
Gets or sets a value indicating whether the text is editable or not.
Declaration
public bool IsEditable { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is |
Examples
The below examples shows, how to enable or disable the text editable.
<imageEditor:SfImageEditor x:Name="imageEditor"
Source="syncfusion.png"
ImageLoaded="OnImageLoaded"
</imageEditor:SfImageEditor>
TextAlignment
Gets or sets the text alignment for the text.
Declaration
public TextAlignment TextAlignment { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.Maui.TextAlignment | The default value is |
Examples
The below examples shows, how to set a TextAlignment for the text.
<imageEditor:SfImageEditor x:Name="imageEditor"
Source="syncfusion.png"
ImageLoaded="OnImageLoaded"
</imageEditor:SfImageEditor>
TextStyle
Gets or sets the text style for text.
Declaration
public ImageEditorTextStyle TextStyle { get; set; }
Property Value
Type |
---|
ImageEditorTextStyle |
Examples
The below examples shows, how to set a text style for text.