GenericTextParagraphProperties Class
Definition
Generic implementation of Avalonia.Media.TextFormatting.TextParagraphProperties.
public class GenericTextParagraphProperties
Constructors
| Name | Description |
|---|---|
| GenericTextParagraphProperties (3 overloads) | Initializes a new instance of the Avalonia.Media.TextFormatting.GenericTextParagraphProperties. |
GenericTextParagraphProperties overloads
GenericTextParagraphProperties Constructor
Initializes a new instance of the Avalonia.Media.TextFormatting.GenericTextParagraphProperties.
public GenericTextParagraphProperties(Avalonia.Media.FlowDirection flowDirection, Avalonia.Media.TextAlignment textAlignment, bool firstLineInParagraph, bool alwaysCollapsible, Avalonia.Media.TextFormatting.TextRunProperties defaultTextRunProperties, Avalonia.Media.TextWrapping textWrapping, double lineHeight, double indent, double letterSpacing)
Parameters
flowDirection Avalonia.Media.FlowDirection
The primary text advance direction.
textAlignment Avalonia.Media.TextAlignment
The alignment of inline content in a block.
firstLineInParagraph bool
if the paragraph is the first line in the paragraph
alwaysCollapsible bool
if the formatted line may always be collapsed. If (the default), only lines that overflow the paragraph width are collapsed.
defaultTextRunProperties Avalonia.Media.TextFormatting.TextRunProperties
Default text run properties, such as typeface or foreground brush.
textWrapping Avalonia.Media.TextWrapping
A value that controls whether text wraps when it reaches the flow edge of its containing block box.
lineHeight double
Paragraph's line spacing.
indent double
The amount of line indentation.
letterSpacing double
The amount of letter spacing.
GenericTextParagraphProperties Constructor
Initializes a new instance of the Avalonia.Media.TextFormatting.GenericTextParagraphProperties with values copied from the specified Avalonia.Media.TextFormatting.TextParagraphProperties.
public GenericTextParagraphProperties(Avalonia.Media.TextFormatting.TextParagraphProperties textParagraphProperties)
Parameters
textParagraphProperties Avalonia.Media.TextFormatting.TextParagraphProperties
The Avalonia.Media.TextFormatting.TextParagraphProperties to copy values from.
GenericTextParagraphProperties Constructor
Initializes a new instance of the Avalonia.Media.TextFormatting.GenericTextParagraphProperties.
public GenericTextParagraphProperties(Avalonia.Media.TextFormatting.TextRunProperties defaultTextRunProperties, Avalonia.Media.TextAlignment textAlignment, Avalonia.Media.TextWrapping textWrapping, double lineHeight, double letterSpacing)
Parameters
defaultTextRunProperties Avalonia.Media.TextFormatting.TextRunProperties
Default text run properties, such as typeface or foreground brush.
textAlignment Avalonia.Media.TextAlignment
The alignment of inline content in a block.
textWrapping Avalonia.Media.TextWrapping
A value that controls whether text wraps when it reaches the flow edge of its containing block box.
lineHeight double
Paragraph's line spacing.
letterSpacing double
The amount of letter spacing.
Properties
| Name | Description |
|---|---|
| AlwaysCollapsible | Gets a value that indicates whether a formatted line can always be collapsed. |
| 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. |
| TextAlignment | Gets a value that describes how an inline content of a block is aligned. |
| TextWrapping | Gets a value that controls whether text wraps when it reaches the flow edge of its containing block box. |
| DefaultIncrementalTab | Gets the default incremental tab width. Inherited from TextParagraphProperties. |
| ParagraphIndent | Gets the paragraph indentation. Inherited from TextParagraphProperties. |
| TextDecorations | Gets the collection of TextDecoration objects. Inherited from TextParagraphProperties. |
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.
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; }
TextAlignment Property
Gets a value that describes how an inline content of a block is aligned.
public Avalonia.Media.TextAlignment TextAlignment { get; set; }
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; }