Class RichTextEditorFormatType
Represents the current formatting status of text in the RichTextEditor.
Implements
Inherited Members
Namespace: Syncfusion.Maui.RichTextEditor
Assembly: Syncfusion.Maui.RichTextEditor.dll
Syntax
public class RichTextEditorFormatType : 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 |
|---|
| string |
FontFamily
Gets or sets the font family name. Null indicates default font family.
Declaration
public string? FontFamily { get; }
Property Value
| Type |
|---|
| string |
FontSize
Gets or sets the font size in pixels. Null indicates default font size.
Declaration
public string? FontSize { get; }
Property Value
| Type |
|---|
| string |
HighlightedColor
Gets or sets the highlight color. Null indicates default highlight color.
Declaration
public Color? HighlightedColor { get; }
Property Value
| Type |
|---|
| 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 |
|---|
| int |
IsBold
Gets or sets a value indicating whether the text is bold.
Declaration
public bool IsBold { get; }
Property Value
| Type |
|---|
| bool |
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 |
|---|
| bool |
IsHyperlink
Gets or sets a value indicating whether the cursor is currently in a hyperlink.
Declaration
public bool IsHyperlink { get; }
Property Value
| Type |
|---|
| bool |
IsItalic
Gets or sets a value indicating whether the text is italic.
Declaration
public bool IsItalic { get; }
Property Value
| Type |
|---|
| bool |
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 |
|---|
| bool |
IsStrikethrough
Gets or sets a value indicating whether the text has strikethrough formatting.
Declaration
public bool IsStrikethrough { get; }
Property Value
| Type |
|---|
| bool |
IsSubscript
Gets or sets a value indicating whether the text is subscript.
Declaration
public bool IsSubscript { get; }
Property Value
| Type |
|---|
| bool |
IsSuperscript
Gets or sets a value indicating whether the text is superscript.
Declaration
public bool IsSuperscript { get; }
Property Value
| Type |
|---|
| bool |
IsUnderline
Gets or sets a value indicating whether the text is underlined.
Declaration
public bool IsUnderline { get; }
Property Value
| Type |
|---|
| bool |
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 |
|---|
| 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 |
|---|---|
| bool | 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 |
|---|---|---|
| object | obj | The object to compare with the current object. |
Returns
| Type | Description |
|---|---|
| bool | true if the specified object is equal to the current object; otherwise, false. |
Overrides
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | A 32-bit signed integer that is the hash code for this instance. |
Overrides
ToString()
Returns a string representation of the formatting status.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | A string that represents the current formatting status. |
Overrides
Operators
operator ==(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 |
|---|---|
| bool | true if the instances are equal; otherwise, false. |
operator !=(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 |
|---|---|
| bool | true if the instances are not equal; otherwise, false. |