TextBlock.HorizontalTextAlignmentProperty Property

Definition

Identifies the HorizontalTextAlignment dependency property.

Equivalent WinUI property: Microsoft.UI.Xaml.Controls.TextBlock.HorizontalTextAlignmentProperty.

public:
 static property DependencyProperty ^ HorizontalTextAlignmentProperty { DependencyProperty ^ get(); };
DependencyProperty HorizontalTextAlignmentProperty();
public static DependencyProperty HorizontalTextAlignmentProperty { get; }
var dependencyProperty = TextBlock.horizontalTextAlignmentProperty;
Public Shared ReadOnly Property HorizontalTextAlignmentProperty As DependencyProperty

Property Value

DependencyProperty

The identifier for the HorizontalTextAlignment dependency property.

Windows 10 requirements

Device family
Windows 10 Fall Creators Update (introduced in 10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v5.0)

Applies to