Block.TextAlignment Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the horizontal alignment of the text content.
public:
property TextAlignment TextAlignment { TextAlignment get(); void set(TextAlignment value); };
TextAlignment TextAlignment();
void TextAlignment(TextAlignment value);
public TextAlignment TextAlignment { get; set; }
var textAlignment = block.textAlignment;
block.textAlignment = textAlignment;
Public Property TextAlignment As TextAlignment
<Paragraph TextAlignment="textAlignmentMemberName"/>
Property Value
The horizontal alignment of the text content. The default is Left.
Remarks
Block is a base class for Paragraph. Paragraph is the only element that you can set a TextAlignment value on in Windows Runtime XAML, unless you create a custom class based on Block.