Udostępnij za pośrednictwem


Block.TextAlignment Property

Definition

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.

Applies to

See also