Skip to main content

TextParagraphProperties Class

Definition​

Assembly:Avalonia.Base
Package:Avalonia

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

public class TextParagraphProperties

Inheritance: object -> TextParagraphProperties

Properties​

NameDescription
AlwaysCollapsibleGets a value that indicates whether a formatted line can always be collapsed.
DefaultIncrementalTabGets the default incremental tab width.
DefaultTextRunPropertiesGets the default text run properties, such as typeface or foreground brush.
FirstLineInParagraphGets a value that indicates whether the text run is the first line of the paragraph.
FlowDirectionGets a value that specifies whether the primary text advance direction shall be left-to-right, or right-to-left.
IndentGets the amount of line indentation.
LetterSpacingGets the amount of letter spacing.
LineHeightGets the height of a line of text.
ParagraphIndentGets the paragraph indentation.
TextAlignmentGets a value that describes how an inline content of a block is aligned.
TextDecorationsGets the collection of TextDecoration objects.
TextWrappingGets a value that controls whether text wraps when it reaches the flow edge of its containing block box.

AlwaysCollapsible Property​

Gets a value that indicates whether a formatted line can always be collapsed.

public bool AlwaysCollapsible { get; set; }

Remarks​

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

DefaultIncrementalTab Property​

Gets the default incremental tab width.

public double DefaultIncrementalTab { get; set; }

DefaultTextRunProperties Property​

Gets the default text run properties, such as typeface or foreground brush.

public Avalonia.Media.TextFormatting.TextRunProperties DefaultTextRunProperties { get; set; }

FirstLineInParagraph Property​

Gets a value that indicates whether the text run is the first line of the paragraph.

public bool FirstLineInParagraph { get; set; }

FlowDirection Property​

Gets a value that specifies whether the primary text advance direction shall be left-to-right, or right-to-left.

public Avalonia.Media.FlowDirection FlowDirection { get; set; }

Indent Property​

Gets the amount of line indentation.

public double Indent { get; set; }

LetterSpacing Property​

Gets the amount of letter spacing.

public double LetterSpacing { get; set; }

LineHeight Property​

Gets the height of a line of text.

public double LineHeight { get; set; }

ParagraphIndent Property​

Gets the paragraph indentation.

public double ParagraphIndent { get; set; }

TextAlignment Property​

Gets a value that describes how an inline content of a block is aligned.

public Avalonia.Media.TextAlignment TextAlignment { get; set; }

TextDecorations Property​

Gets the collection of TextDecoration objects.

public Avalonia.Media.TextDecorationCollection TextDecorations { get; set; }

Remarks​

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.

TextWrapping Property​

Gets a value that controls whether text wraps when it reaches the flow edge of its containing block box.

public Avalonia.Media.TextWrapping TextWrapping { get; set; }