RichTextKit v0.4

TextAlignment Enum

Assembly: Topten.RichTextKit.dll
Namespace: Topten.RichTextKit

Species the alignment of text within a text block

public enum TextAlignment

Members

Auto 0

Use base direction of the text block.

Center 2

Center aligns text between 0 and TextBlock.MaxWidth unless not specified in which case it uses the widest line in the text block.

Left 1

Left-aligns text to a x-coord of 0.

Right 3

Right aligns text TextBlock.MaxWidth unless not specified in which case it right aligns to the widest line in the text block.

Subscribe for more like this. No spam, just fun tech stuff :)

Or, find me on Twitter: @toptensoftware.