Class RichTextCharacterFormat
- Namespace
- RichEdit.Maui
- Assembly
- RichEdit.Maui.dll
Defines immutable character formatting.
public sealed record RichTextCharacterFormat : IEquatable<RichTextCharacterFormat>
- Inheritance
-
RichTextCharacterFormat
- Implements
- Inherited Members
Constructors
RichTextCharacterFormat()
public RichTextCharacterFormat()
Properties
AllCaps
Gets whether uppercase presentation is requested.
public bool AllCaps { get; init; }
Property Value
BackgroundColor
Gets the solid text background color, or null for no highlight.
public Color? BackgroundColor { get; init; }
Property Value
BaselineOffset
Gets the additional baseline offset in points.
public double BaselineOffset { get; init; }
Property Value
Bold
Gets whether FontWeight represents a bold weight.
public bool Bold { get; }
Property Value
CharacterSpacing
Gets additional character spacing in points.
public double CharacterSpacing { get; init; }
Property Value
Default
Gets an inherited, otherwise neutral character format.
public static RichTextCharacterFormat Default { get; }
Property Value
Direction
Gets explicit character direction.
public RichTextDirection Direction { get; init; }
Property Value
FontFamily
Gets the authored font family, or null to inherit.
public string? FontFamily { get; init; }
Property Value
FontSize
Gets the authored font size in points, or null to inherit.
public double? FontSize { get; init; }
Property Value
FontWeight
Gets the numeric font weight from 1 through 1000.
public int FontWeight { get; init; }
Property Value
ForegroundColor
Gets the authored foreground color, or null to inherit.
public Color? ForegroundColor { get; init; }
Property Value
Hidden
Gets whether text is hidden.
public bool Hidden { get; init; }
Property Value
HorizontalScale
Gets the horizontal glyph scale, where 1 is unchanged.
public double HorizontalScale { get; init; }
Property Value
Italic
Gets whether italic styling is enabled.
public bool Italic { get; init; }
Property Value
Kerning
Gets the kerning preference.
public RichTextFeatureMode Kerning { get; init; }
Property Value
LanguageTag
Gets the BCP 47 language tag, or null when unspecified.
public string? LanguageTag { get; init; }
Property Value
Ligatures
Gets the ligature preference.
public RichTextFeatureMode Ligatures { get; init; }
Property Value
Outline
Gets whether the outline effect is requested.
public bool Outline { get; init; }
Property Value
Script
Gets the superscript or subscript state.
public RichTextScript Script { get; init; }
Property Value
Shading
Gets the RTF shading amount from 0 through 10000.
public int Shading { get; init; }
Property Value
ShadingBackgroundColor
Gets the RTF shading background color.
public Color? ShadingBackgroundColor { get; init; }
Property Value
ShadingForegroundColor
Gets the RTF shading foreground color.
public Color? ShadingForegroundColor { get; init; }
Property Value
Shadow
Gets whether the shadow effect is requested.
public bool Shadow { get; init; }
Property Value
SmallCaps
Gets whether small-cap glyphs are requested.
public bool SmallCaps { get; init; }
Property Value
Strikethrough
Gets the strikethrough style.
public RichTextStrikethroughStyle Strikethrough { get; init; }
Property Value
StrikethroughColor
Gets the strikethrough color, or null for the text color.
public Color? StrikethroughColor { get; init; }
Property Value
StyleName
Gets the named character style, or null when unspecified.
public string? StyleName { get; init; }
Property Value
Underline
Gets the underline style.
public RichTextUnderlineStyle Underline { get; init; }
Property Value
UnderlineColor
Gets the underline color, or null for the text color.
public Color? UnderlineColor { get; init; }
Property Value
Methods
Equals(RichTextCharacterFormat?)
public bool Equals(RichTextCharacterFormat? other)
Parameters
otherRichTextCharacterFormat
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(RichTextCharacterFormat?, RichTextCharacterFormat?)
public static bool operator ==(RichTextCharacterFormat? left, RichTextCharacterFormat? right)
Parameters
leftRichTextCharacterFormatrightRichTextCharacterFormat
Returns
operator !=(RichTextCharacterFormat?, RichTextCharacterFormat?)
public static bool operator !=(RichTextCharacterFormat? left, RichTextCharacterFormat? right)
Parameters
leftRichTextCharacterFormatrightRichTextCharacterFormat