NumberBox.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 a value that specifies how the text should be horizontally aligned in the text box.
public:
property TextAlignment TextAlignment { TextAlignment get(); void set(TextAlignment value); };
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::TextAlignment::Left")]
/// [Windows.Foundation.Metadata.Experimental]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::TextAlignment::Left")]
/// [get: Windows.Foundation.Metadata.Experimental]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::TextAlignment::Left")]
/// [set: Windows.Foundation.Metadata.Experimental]
TextAlignment TextAlignment();
void TextAlignment(TextAlignment value);
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::TextAlignment::Left")]
[Windows.Foundation.Metadata.Experimental]
public TextAlignment TextAlignment { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::TextAlignment::Left")] [Windows.Foundation.Metadata.Experimental] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::TextAlignment::Left")] [Windows.Foundation.Metadata.Experimental] set; }
Public Property TextAlignment As TextAlignment
Property Value
One of the TextAlignment
enumeration values. The default is Left
.
- Attributes
-
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute ExperimentalAttribute