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
IsMixed
Gets a value indicating whether the complete formats differ.
public bool IsMixed { get; }
Property Value
RepresentativeFormat
Gets the first paragraph format in the range. Use IsMixed before treating this value as uniform.
public RichTextParagraphFormat RepresentativeFormat { get; }
Property Value
UniformFormat
Gets the uniform format, or null when the selected paragraphs have different complete formats.
public RichTextParagraphFormat? UniformFormat { get; }
Property Value
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
selectorFunc<RichTextParagraphFormat, T>A property selector evaluated for each distinct format.
Returns
- RichTextFormatValue<T>
The representative and mixed state for the selected property.
Type Parameters
TThe selected property type.