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
DefaultIncrementalTab
Gets the default incremental tab width.
public virtual double DefaultIncrementalTab { get; }
Property Value
DefaultTextRunProperties
Gets the default text style.
public abstract TextRunProperties DefaultTextRunProperties { get; }
Property Value
FirstLineInParagraph
Indicates the first line of the paragraph.
public abstract bool FirstLineInParagraph { get; }
Property Value
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
Indent
Line indentation
public abstract double Indent { get; }
Property Value
LetterSpacing
Gets the letter spacing.
public virtual double LetterSpacing { get; }
Property Value
LineHeight
Paragraph's line height
public abstract double LineHeight { get; }
Property Value
ParagraphIndent
Get the paragraph indentation.
public virtual double ParagraphIndent { get; }
Property Value
TextAlignment
Gets the text alignment.
public abstract TextAlignment TextAlignment { get; }
Property Value
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
TextWrapping
Gets the text wrapping.
public abstract TextWrapping TextWrapping { get; }