TextBlock.Alignment Property
Assembly: Topten.RichTextKit.dll
Namespace: Topten.RichTextKit
Declaring Type: TextBlock
Sets the left, right or center alignment of the text block.
public TextAlignment Alignment { get; set; }
Remarks
Set this property to TextAlignment.Auto to align the paragraph according to the BaseDirection.
- If the MaxWidth property has been set this will be used for alignment calculations.
- If the MaxWidth property has not been set, the width of the longest line will be used.
Property Type
TextAlignment |