Table of Contents

Class RichTextParagraphFormatSummary

Namespace
RichEdit.Maui
Assembly
RichEdit.Maui.dll

Summarizes the declared paragraph formats present in a document range.

public sealed class RichTextParagraphFormatSummary
Inheritance
RichTextParagraphFormatSummary
Inherited Members

Properties

Formats

Gets the distinct declared paragraph formats in document order.

public IReadOnlyList<RichTextParagraphFormat> Formats { get; }

Property Value

IReadOnlyList<RichTextParagraphFormat>

IsMixed

Gets a value indicating whether the complete formats differ.

public bool IsMixed { get; }

Property Value

bool

RepresentativeFormat

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

public RichTextParagraphFormat RepresentativeFormat { get; }

Property Value

RichTextParagraphFormat

UniformFormat

Gets the uniform format, or null when the selected paragraphs have different complete formats.

public RichTextParagraphFormat? UniformFormat { get; }

Property Value

RichTextParagraphFormat

Methods

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

Summarizes any paragraph-format property selected by the caller.

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

Parameters

selector Func<RichTextParagraphFormat, 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.