TextBlock.TextAlignment Свойство

Определение

Получает или задает значение, указывающее горизонтальное выравнивание содержимого текста.

public:
 property TextAlignment TextAlignment { TextAlignment get(); void set(TextAlignment value); };
TextAlignment TextAlignment();

void TextAlignment(TextAlignment value);
public TextAlignment TextAlignment { get; set; }
var textAlignment = textBlock.textAlignment;
textBlock.textAlignment = textAlignment;
Public Property TextAlignment As TextAlignment
<TextBlock TextAlignment="textAlignmentMemberName"/>

Значение свойства

Выравнивание текста. Значение по умолчанию — Left.

Применяется к