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
FlowDirectiontext flow direction
textAlignment
TextAlignmentlogical horizontal alignment
firstLineInParagraph
booltrue if the paragraph is the first line in the paragraph
alwaysCollapsible
booltrue if the line is always collapsible
defaultTextRunProperties
TextRunPropertiesdefault paragraph's default run properties
textWrap
TextWrappingtext wrap option
lineHeight
doubleParagraph line height
indent
doubleline indentation
letterSpacing
doubleletter spacing
GenericTextParagraphProperties(TextParagraphProperties)
Constructing TextParagraphProperties from another one
public GenericTextParagraphProperties(TextParagraphProperties textParagraphProperties)
Parameters
textParagraphProperties
TextParagraphPropertiessource 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
TextRunPropertiesdefault paragraph's default run properties
textAlignment
TextAlignmentlogical horizontal alignment
textWrap
TextWrappingtext wrap option
lineHeight
doubleParagraph line height
letterSpacing
doubleletter 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
DefaultTextRunProperties
Paragraph's default run properties
public override TextRunProperties DefaultTextRunProperties { get; }
Property Value
FirstLineInParagraph
Indicates the first line of the paragraph.
public override bool FirstLineInParagraph { get; }
Property Value
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
Indent
Line indentation
public override double Indent { get; }
Property Value
LetterSpacing
The letter spacing
public override double LetterSpacing { get; }
Property Value
LineHeight
Paragraph's line height
public override double LineHeight { get; }
Property Value
TextAlignment
This property describes how inline content of a block is aligned.
public override TextAlignment TextAlignment { get; }
Property Value
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; }