menu

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ImageEditorTextSettings - MAUI API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ImageEditorTextSettings

    Represents a class that contains the settings for text annotation view.

    Inheritance
    System.Object
    ImageEditorAnnotationSettings
    ImageEditorTextSettings
    Inherited Members
    ImageEditorAnnotationSettings.AllowDrag
    ImageEditorAnnotationSettings.AllowDragProperty
    ImageEditorAnnotationSettings.AllowResize
    ImageEditorAnnotationSettings.AllowResizeProperty
    ImageEditorAnnotationSettings.Bounds
    ImageEditorAnnotationSettings.BoundsProperty
    ImageEditorAnnotationSettings.Id
    ImageEditorAnnotationSettings.IdProperty
    ImageEditorAnnotationSettings.IsRotatable
    ImageEditorAnnotationSettings.IsRotatableProperty
    ImageEditorAnnotationSettings.Opacity
    ImageEditorAnnotationSettings.OpacityProperty
    ImageEditorAnnotationSettings.RotationAngle
    ImageEditorAnnotationSettings.RotationAngleProperty
    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 true

    Examples

    The below examples shows, how to enable or disable the text editable.

    • XAML
    • C#
    <imageEditor:SfImageEditor x:Name="imageEditor"
                               Source="syncfusion.png"
                               ImageLoaded="OnImageLoaded"
    </imageEditor:SfImageEditor>
    private void OnImageLoaded(object sender, EventArgs e)
    {
        this.imageEditor.AddText("Good Day", new ImageEditorTextSettings() { IsEditable=false });
    }

    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 TextAlignment.Center

    Examples

    The below examples shows, how to set a TextAlignment for the text.

    • XAML
    • C#
    <imageEditor:SfImageEditor x:Name="imageEditor"
                               Source="syncfusion.png"
                               ImageLoaded="OnImageLoaded"
    </imageEditor:SfImageEditor>
    private void OnImageLoaded(object sender, EventArgs e)
    {
        this.imageEditor.AddText("Good Day", new ImageEditorTextSettings() { TextAlignment=TextAlignment.Start });
    }

    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.

    • XAML
    • C#
    <imageEditor:SfImageEditor x:Name="imageEditor"
                               Source="syncfusion.png"
                               ImageLoaded="OnImageLoaded"
    </imageEditor:SfImageEditor>
    private void OnImageLoaded(object sender, EventArgs e)
    {
        this.imageEditor.AddText("Good Day", new ImageEditorTextSettings() { TextStyle = new ImageEditorTextStyle() { FontSize=14, TextColor=Colors.Black, FontFamily="Arial", FontAttributes=FontAttributes.Italic } });
    }
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved