Table of Contents

Class RichTextParagraphFormat

Namespace
RichEdit.Maui
Assembly
RichEdit.Maui.dll

Defines immutable paragraph formatting.

public sealed record RichTextParagraphFormat : IEquatable<RichTextParagraphFormat>
Inheritance
RichTextParagraphFormat
Implements
Inherited Members

Constructors

RichTextParagraphFormat()

public RichTextParagraphFormat()

Properties

Alignment

Gets paragraph alignment.

public RichTextAlignment Alignment { get; init; }

Property Value

RichTextAlignment

BackgroundColor

Gets the solid paragraph background color.

public Color? BackgroundColor { get; init; }

Property Value

Color

Border

Gets paragraph border formatting.

public RichTextBorder? Border { get; init; }

Property Value

RichTextBorder

Default

Gets the neutral default paragraph format.

public static RichTextParagraphFormat Default { get; }

Property Value

RichTextParagraphFormat

Direction

Gets paragraph direction.

public RichTextDirection Direction { get; init; }

Property Value

RichTextDirection

FirstLineIndent

Gets first-line or hanging indent in points.

public double FirstLineIndent { get; init; }

Property Value

double

Hyphenation

Gets whether hyphenation is requested.

public bool Hyphenation { get; init; }

Property Value

bool

LeadingIndent

Gets leading indent in points.

public double LeadingIndent { get; init; }

Property Value

double

LineSpacing

Gets the line-spacing rule value.

public double LineSpacing { get; init; }

Property Value

double

LineSpacingRule

Gets the line-spacing rule.

public RichTextLineSpacingRule LineSpacingRule { get; init; }

Property Value

RichTextLineSpacingRule

List

Gets document-list item state, or null for an ordinary paragraph.

public RichTextListItemFormat? List { get; init; }

Property Value

RichTextListItemFormat

MaximumLineHeight

Gets an optional maximum line height in points.

public double? MaximumLineHeight { get; init; }

Property Value

double?

MinimumLineHeight

Gets an optional minimum line height in points.

public double? MinimumLineHeight { get; init; }

Property Value

double?

Shading

Gets the RTF paragraph-shading amount from 0 through 10000.

public int Shading { get; init; }

Property Value

int

ShadingBackgroundColor

Gets the RTF paragraph-shading background color.

public Color? ShadingBackgroundColor { get; init; }

Property Value

Color

ShadingForegroundColor

Gets the RTF paragraph-shading foreground color.

public Color? ShadingForegroundColor { get; init; }

Property Value

Color

SpaceAfter

Gets space after the paragraph in points.

public double SpaceAfter { get; init; }

Property Value

double

SpaceBefore

Gets space before the paragraph in points.

public double SpaceBefore { get; init; }

Property Value

double

StyleName

Gets the named paragraph style, or null when unspecified.

public string? StyleName { get; init; }

Property Value

string

TabStops

Gets ordered paragraph tab stops.

public ImmutableArray<RichTextTabStop> TabStops { get; init; }

Property Value

ImmutableArray<RichTextTabStop>

TrailingIndent

Gets trailing indent in points.

public double TrailingIndent { get; init; }

Property Value

double

Methods

Equals(RichTextParagraphFormat?)

public bool Equals(RichTextParagraphFormat? other)

Parameters

other RichTextParagraphFormat

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(RichTextParagraphFormat?, RichTextParagraphFormat?)

public static bool operator ==(RichTextParagraphFormat? left, RichTextParagraphFormat? right)

Parameters

left RichTextParagraphFormat
right RichTextParagraphFormat

Returns

bool

operator !=(RichTextParagraphFormat?, RichTextParagraphFormat?)

public static bool operator !=(RichTextParagraphFormat? left, RichTextParagraphFormat? right)

Parameters

left RichTextParagraphFormat
right RichTextParagraphFormat

Returns

bool