Share via


NumberBox.Value Propriété

Définition

Obtient ou définit la valeur numérique d’un NumberBox.

public:
 property double Value { double get(); void set(double value); };
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="std::numeric_limits<double>::quiet_NaN()")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="std::numeric_limits<double>::quiet_NaN()")]
double Value();

void Value(double value);
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="std::numeric_limits<double>::quiet_NaN()")]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="std::numeric_limits<double>::quiet_NaN()")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="std::numeric_limits<double>::quiet_NaN()")]
double Value();

void Value(double value);
public double Value { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)] [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="std::numeric_limits<double>::quiet_NaN()")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)] [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="std::numeric_limits<double>::quiet_NaN()")] set; }
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="std::numeric_limits<double>::quiet_NaN()")]
public double Value { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)] [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="std::numeric_limits<double>::quiet_NaN()")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)] [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="std::numeric_limits<double>::quiet_NaN()")] set; }
var double = numberBox.value;
numberBox.value = double;
Public Property Value As Double

Valeur de propriété

Double

double

Attributs
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallbackAttribute Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute

Remarques

Le texte existe pour faciliter l’obtention de la représentation sous forme de chaîne du contenu numérique de cette propriété sans avoir besoin d’une conversion de type. Notez que le contenu de cette propriété remplacera le contenu de Text lors de la configuration initiale. Une fois la configuration initiale terminée, les modifications apportées à l’une seront apportées à l’autre, mais le fait d’apporter systématiquement des modifications programmatiques via cette propriété permet d’éviter tout malentendu conceptuel selon lequel NumberBox acceptera des caractères non numériques par le biais de la propriété Text .

S’applique à