Class RichTextDecorationStyle
- Namespace
- RichEdit.Maui
- Assembly
- RichEdit.Maui.dll
Nonpersistent character appearance. Null properties leave the underlying appearance unchanged.
public sealed record RichTextDecorationStyle : IEquatable<RichTextDecorationStyle>
- Inheritance
-
RichTextDecorationStyle
- Implements
- Inherited Members
Constructors
RichTextDecorationStyle()
public RichTextDecorationStyle()
Properties
BackgroundColor
Gets the background override.
public Color? BackgroundColor { get; init; }
Property Value
FontWeight
Gets the font weight override.
public int? FontWeight { get; init; }
Property Value
- int?
ForegroundColor
Gets the foreground override.
public Color? ForegroundColor { get; init; }
Property Value
Italic
Gets the italic override.
public bool? Italic { get; init; }
Property Value
- bool?
Underline
Gets the underline override.
public RichTextUnderlineStyle? Underline { get; init; }
Property Value
UnderlineColor
Gets the underline-color override, subject to native rendering support.
public Color? UnderlineColor { get; init; }
Property Value
Methods
Equals(RichTextDecorationStyle?)
public bool Equals(RichTextDecorationStyle? other)
Parameters
otherRichTextDecorationStyle
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(RichTextDecorationStyle?, RichTextDecorationStyle?)
public static bool operator ==(RichTextDecorationStyle? left, RichTextDecorationStyle? right)
Parameters
leftRichTextDecorationStylerightRichTextDecorationStyle
Returns
operator !=(RichTextDecorationStyle?, RichTextDecorationStyle?)
public static bool operator !=(RichTextDecorationStyle? left, RichTextDecorationStyle? right)
Parameters
leftRichTextDecorationStylerightRichTextDecorationStyle