Table of Contents

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

Color

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

Color

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

RichTextUnderlineStyle?

UnderlineColor

Gets the underline-color override, subject to native rendering support.

public Color? UnderlineColor { get; init; }

Property Value

Color

Methods

Equals(RichTextDecorationStyle?)

public bool Equals(RichTextDecorationStyle? other)

Parameters

other RichTextDecorationStyle

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(RichTextDecorationStyle?, RichTextDecorationStyle?)

public static bool operator ==(RichTextDecorationStyle? left, RichTextDecorationStyle? right)

Parameters

left RichTextDecorationStyle
right RichTextDecorationStyle

Returns

bool

operator !=(RichTextDecorationStyle?, RichTextDecorationStyle?)

public static bool operator !=(RichTextDecorationStyle? left, RichTextDecorationStyle? right)

Parameters

left RichTextDecorationStyle
right RichTextDecorationStyle

Returns

bool