TextParagraphProperties Class
Definition
Provides a set of properties that are used during the paragraph layout.
public class TextParagraphProperties
Properties
| Name | Description |
|---|---|
| AlwaysCollapsible | Gets a value that indicates whether a formatted line can always be collapsed. |
| DefaultIncrementalTab | Gets the default incremental tab width. |
| DefaultTextRunProperties | Gets the default text run properties, such as typeface or foreground brush. |
| FirstLineInParagraph | Gets a value that indicates whether the text run is the first line of the paragraph. |
| FlowDirection | Gets a value that specifies whether the primary text advance direction shall be left-to-right, or right-to-left. |
| Indent | Gets the amount of line indentation. |
| LetterSpacing | Gets the amount of letter spacing. |
| LineHeight | Gets the height of a line of text. |
| ParagraphIndent | Gets the paragraph indentation. |
| TextAlignment | Gets a value that describes how an inline content of a block is aligned. |
| TextDecorations | Gets the collection of TextDecoration objects. |
| TextWrapping | Gets 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; }