Table of Contents

Class RichTextCharacterFormatSummary

Namespace
RichEdit.Maui
Assembly
RichEdit.Maui.dll

Summarizes the declared character formats present in a document range.

public sealed class RichTextCharacterFormatSummary
Inheritance
RichTextCharacterFormatSummary
Inherited Members

Properties

EffectiveFontFamily

Gets font-family state resolved through the document default.

public RichTextFormatValue<string?> EffectiveFontFamily { get; }

Property Value

RichTextFormatValue<string>

EffectiveFontSize

Gets font-size state resolved through the document default.

public RichTextFormatValue<double?> EffectiveFontSize { get; }

Property Value

RichTextFormatValue<double?>

EffectiveForegroundColor

Gets foreground-color state resolved through the document default.

public RichTextFormatValue<Color?> EffectiveForegroundColor { get; }

Property Value

RichTextFormatValue<Color>

FontFamily

Gets authored font-family state.

public RichTextFormatValue<string?> FontFamily { get; }

Property Value

RichTextFormatValue<string>

FontSize

Gets authored font-size state.

public RichTextFormatValue<double?> FontSize { get; }

Property Value

RichTextFormatValue<double?>

ForegroundColor

Gets authored foreground-color state.

public RichTextFormatValue<Color?> ForegroundColor { get; }

Property Value

RichTextFormatValue<Color>

Formats

Gets the distinct declared formats in document order.

public IReadOnlyList<RichTextCharacterFormat> Formats { get; }

Property Value

IReadOnlyList<RichTextCharacterFormat>

IsMixed

Gets a value indicating whether the complete formats differ.

public bool IsMixed { get; }

Property Value

bool

RepresentativeFormat

Gets the first format in the range. Use IsMixed before treating this value as uniform.

public RichTextCharacterFormat RepresentativeFormat { get; }

Property Value

RichTextCharacterFormat

UniformFormat

Gets the uniform format, or null when the range contains different complete character formats.

public RichTextCharacterFormat? UniformFormat { get; }

Property Value

RichTextCharacterFormat

Methods

GetValue<T>(Func<RichTextCharacterFormat, T>)

Summarizes any character-format property selected by the caller.

public RichTextFormatValue<T> GetValue<T>(Func<RichTextCharacterFormat, T> selector)

Parameters

selector Func<RichTextCharacterFormat, T>

A property selector evaluated for each distinct format.

Returns

RichTextFormatValue<T>

The representative and mixed state for the selected property.

Type Parameters

T

The selected property type.