Table of Contents

Class TextParagraphProperties

Namespace
Avalonia.Media.TextFormatting
Assembly
Avalonia.Base.dll

Provides a set of properties that are used during the paragraph layout.

public abstract class TextParagraphProperties
Inheritance
TextParagraphProperties
Derived
Inherited Members

Constructors

TextParagraphProperties()

protected TextParagraphProperties()

Properties

AlwaysCollapsible

If true, the formatted line may always be collapsed. If false (the default), only lines that overflow the paragraph width are collapsed.

public virtual bool AlwaysCollapsible { get; }

Property Value

bool

DefaultIncrementalTab

Gets the default incremental tab width.

public virtual double DefaultIncrementalTab { get; }

Property Value

double

DefaultTextRunProperties

Gets the default text style.

public abstract TextRunProperties DefaultTextRunProperties { get; }

Property Value

TextRunProperties

FirstLineInParagraph

Indicates the first line of the paragraph.

public abstract bool FirstLineInParagraph { get; }

Property Value

bool

FlowDirection

This property specifies whether the primary text advance direction shall be left-to-right, right-to-left.

public abstract FlowDirection FlowDirection { get; }

Property Value

FlowDirection

Indent

Line indentation

public abstract double Indent { get; }

Property Value

double

LetterSpacing

Gets the letter spacing.

public virtual double LetterSpacing { get; }

Property Value

double

LineHeight

Paragraph's line height

public abstract double LineHeight { get; }

Property Value

double

ParagraphIndent

Get the paragraph indentation.

public virtual double ParagraphIndent { get; }

Property Value

double

TextAlignment

Gets the text alignment.

public abstract TextAlignment TextAlignment { get; }

Property Value

TextAlignment

TextDecorations

If not null, text decorations to apply to all runs in the line. This is in addition to any text decorations specified by the TextRunProperties for individual text runs.

public virtual TextDecorationCollection? TextDecorations { get; }

Property Value

TextDecorationCollection

TextWrapping

Gets the text wrapping.

public abstract TextWrapping TextWrapping { get; }

Property Value

TextWrapping