Table of Contents

Class GenericTextParagraphProperties

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

Generic implementation of TextParagraphProperties

public sealed class GenericTextParagraphProperties : TextParagraphProperties
Inheritance
GenericTextParagraphProperties
Inherited Members

Constructors

GenericTextParagraphProperties(FlowDirection, TextAlignment, bool, bool, TextRunProperties, TextWrapping, double, double, double)

Constructing TextParagraphProperties

public GenericTextParagraphProperties(FlowDirection flowDirection, TextAlignment textAlignment, bool firstLineInParagraph, bool alwaysCollapsible, TextRunProperties defaultTextRunProperties, TextWrapping textWrap, double lineHeight, double indent, double letterSpacing)

Parameters

flowDirection FlowDirection

text flow direction

textAlignment TextAlignment

logical horizontal alignment

firstLineInParagraph bool

true if the paragraph is the first line in the paragraph

alwaysCollapsible bool

true if the line is always collapsible

defaultTextRunProperties TextRunProperties

default paragraph's default run properties

textWrap TextWrapping

text wrap option

lineHeight double

Paragraph line height

indent double

line indentation

letterSpacing double

letter spacing

GenericTextParagraphProperties(TextParagraphProperties)

Constructing TextParagraphProperties from another one

public GenericTextParagraphProperties(TextParagraphProperties textParagraphProperties)

Parameters

textParagraphProperties TextParagraphProperties

source line props

GenericTextParagraphProperties(TextRunProperties, TextAlignment, TextWrapping, double, double)

Constructing TextParagraphProperties

public GenericTextParagraphProperties(TextRunProperties defaultTextRunProperties, TextAlignment textAlignment = TextAlignment.Left, TextWrapping textWrap = TextWrapping.NoWrap, double lineHeight = 0, double letterSpacing = 0)

Parameters

defaultTextRunProperties TextRunProperties

default paragraph's default run properties

textAlignment TextAlignment

logical horizontal alignment

textWrap TextWrapping

text wrap option

lineHeight double

Paragraph line height

letterSpacing double

letter spacing

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 override bool AlwaysCollapsible { get; }

Property Value

bool

DefaultTextRunProperties

Paragraph's default run properties

public override TextRunProperties DefaultTextRunProperties { get; }

Property Value

TextRunProperties

FirstLineInParagraph

Indicates the first line of the paragraph.

public override bool FirstLineInParagraph { get; }

Property Value

bool

FlowDirection

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

public override FlowDirection FlowDirection { get; }

Property Value

FlowDirection

Indent

Line indentation

public override double Indent { get; }

Property Value

double

LetterSpacing

The letter spacing

public override double LetterSpacing { get; }

Property Value

double

LineHeight

Paragraph's line height

public override double LineHeight { get; }

Property Value

double

TextAlignment

This property describes how inline content of a block is aligned.

public override TextAlignment TextAlignment { get; }

Property Value

TextAlignment

TextWrapping

This property controls whether or not text wraps when it reaches the flow edge of its containing block box

public override TextWrapping TextWrapping { get; }

Property Value

TextWrapping