-api-id | -api-type |
---|---|
P:Microsoft.UI.Xaml.Controls.NumberBox.Text |
winrt property |
Gets or sets the string type representation of the Value property.
This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).
This property exists to faciliate getting the string representation of Value's numeric contents without the need for type conversion. Note the content of Value will overwrite the content of this property in initial set up. After the initial set up, changes to one will be progrogated to the other, but consistently making programmatic changes through Value helps avoid any conceptual misunderstanding that NumberBox will accept non-numeric characters through this property.