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
EffectiveFontSize
Gets font-size state resolved through the document default.
public RichTextFormatValue<double?> EffectiveFontSize { get; }
Property Value
EffectiveForegroundColor
Gets foreground-color state resolved through the document default.
public RichTextFormatValue<Color?> EffectiveForegroundColor { get; }
Property Value
FontFamily
Gets authored font-family state.
public RichTextFormatValue<string?> FontFamily { get; }
Property Value
FontSize
Gets authored font-size state.
public RichTextFormatValue<double?> FontSize { get; }
Property Value
ForegroundColor
Gets authored foreground-color state.
public RichTextFormatValue<Color?> ForegroundColor { get; }
Property Value
Formats
Gets the distinct declared formats in document order.
public IReadOnlyList<RichTextCharacterFormat> Formats { get; }
Property Value
IsMixed
Gets a value indicating whether the complete formats differ.
public bool IsMixed { get; }
Property Value
RepresentativeFormat
Gets the first format in the range. Use IsMixed before treating this value as uniform.
public RichTextCharacterFormat RepresentativeFormat { get; }
Property Value
UniformFormat
Gets the uniform format, or null when the range contains different complete character formats.
public RichTextCharacterFormat? UniformFormat { get; }
Property Value
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
selectorFunc<RichTextCharacterFormat, 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.