menu

MAUI

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

    Show / Hide Table of Contents

    Class RichTextEditorFormatType

    Represents the current formatting status of text in the RichTextEditor.

    Inheritance
    System.Object
    RichTextEditorFormatType
    Implements
    System.IEquatable<RichTextEditorFormatType>
    Namespace: Syncfusion.Maui.RichTextEditor
    Assembly: Syncfusion.Maui.RichTextEditor.dll
    Syntax
    public class RichTextEditorFormatType : Object, IEquatable<RichTextEditorFormatType>

    Constructors

    RichTextEditorFormatType()

    Initializes a new instance of the RichTextEditorFormatType class.

    Declaration
    public RichTextEditorFormatType()

    Properties

    Alignment

    Gets or sets the text alignment of the current selection.

    Declaration
    public string Alignment { get; }
    Property Value
    Type
    System.String

    FontFamily

    Gets or sets the font family name. Null indicates default font family.

    Declaration
    public string FontFamily { get; }
    Property Value
    Type
    System.String

    FontSize

    Gets or sets the font size in pixels. Null indicates default font size.

    Declaration
    public string FontSize { get; }
    Property Value
    Type
    System.String

    HighlightedColor

    Gets or sets the highlight color. Null indicates default highlight color.

    Declaration
    public Color HighlightedColor { get; }
    Property Value
    Type
    Microsoft.Maui.Graphics.Color

    IndentationLevel

    Gets or sets the indentation level of the current selection in a list or paragraph.

    Declaration
    public int IndentationLevel { get; }
    Property Value
    Type
    System.Int32

    IsBold

    Gets or sets a value indicating whether the text is bold.

    Declaration
    public bool IsBold { get; }
    Property Value
    Type
    System.Boolean

    IsBulletList

    Gets or sets a value indicating whether the current selection is part of a bullet list.

    Declaration
    public bool IsBulletList { get; }
    Property Value
    Type
    System.Boolean

    IsHyperlink

    Gets or sets a value indicating whether the cursor is currently in a hyperlink.

    Declaration
    public bool IsHyperlink { get; }
    Property Value
    Type
    System.Boolean

    IsItalic

    Gets or sets a value indicating whether the text is italic.

    Declaration
    public bool IsItalic { get; }
    Property Value
    Type
    System.Boolean

    IsNumberedList

    Gets or sets a value indicating whether the current selection is part of a numbered list.

    Declaration
    public bool IsNumberedList { get; }
    Property Value
    Type
    System.Boolean

    IsStrikethrough

    Gets or sets a value indicating whether the text has strikethrough formatting.

    Declaration
    public bool IsStrikethrough { get; }
    Property Value
    Type
    System.Boolean

    IsSubscript

    Gets or sets a value indicating whether the text is subscript.

    Declaration
    public bool IsSubscript { get; }
    Property Value
    Type
    System.Boolean

    IsSuperscript

    Gets or sets a value indicating whether the text is superscript.

    Declaration
    public bool IsSuperscript { get; }
    Property Value
    Type
    System.Boolean

    IsUnderline

    Gets or sets a value indicating whether the text is underlined.

    Declaration
    public bool IsUnderline { get; }
    Property Value
    Type
    System.Boolean

    ParagraphFormat

    Gets or sets the paragraph format of the current selection.

    Declaration
    public RichTextEditorParagraphFormat ParagraphFormat { get; }
    Property Value
    Type
    RichTextEditorParagraphFormat

    TextColor

    Gets or sets the text color. Null indicates default color.

    Declaration
    public Color TextColor { get; }
    Property Value
    Type
    Microsoft.Maui.Graphics.Color

    Methods

    Equals(RichTextEditorFormatType)

    Determines whether the specified object is equal to the current object.

    Declaration
    public bool Equals(RichTextEditorFormatType other)
    Parameters
    Type Name Description
    RichTextEditorFormatType other

    The object to compare with the current object.

    Returns
    Type Description
    System.Boolean

    true if the specified object is equal to the current object; otherwise, false.

    Equals(Object)

    Determines whether the specified object is equal to the current object.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj

    The object to compare with the current object.

    Returns
    Type Description
    System.Boolean

    true if the specified object is equal to the current object; otherwise, false.

    GetHashCode()

    Returns the hash code for this instance.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32

    A 32-bit signed integer that is the hash code for this instance.

    ToString()

    Returns a string representation of the formatting status.

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String

    A string that represents the current formatting status.

    Operators

    Equality(RichTextEditorFormatType, RichTextEditorFormatType)

    Determines whether two specified instances of RichTextEditorFormatType are equal.

    Declaration
    public static bool operator ==(RichTextEditorFormatType left, RichTextEditorFormatType right)
    Parameters
    Type Name Description
    RichTextEditorFormatType left

    The first instance to compare.

    RichTextEditorFormatType right

    The second instance to compare.

    Returns
    Type Description
    System.Boolean

    true if the instances are equal; otherwise, false.

    Inequality(RichTextEditorFormatType, RichTextEditorFormatType)

    Determines whether two specified instances of RichTextEditorFormatType are not equal.

    Declaration
    public static bool operator !=(RichTextEditorFormatType left, RichTextEditorFormatType right)
    Parameters
    Type Name Description
    RichTextEditorFormatType left

    The first instance to compare.

    RichTextEditorFormatType right

    The second instance to compare.

    Returns
    Type Description
    System.Boolean

    true if the instances are not equal; otherwise, false.

    Implements

    System.IEquatable<>
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved