Taal

IRangeValueProvider.Value Eigenschap

Definitie

Hiermee haalt u de waarde van het besturingselement op.

public:
 property double Value { double get(); };
public double Value { get; }
member this.Value : double
Public ReadOnly Property Value As Double

Waarde van eigenschap

De waarde van het besturingselement of null (Nothing in Visual Basic) als het besturingselement geen ondersteuning biedt voor Value.

Voorbeelden

In het volgende voorbeeld ziet u een implementatie van deze methode voor een aangepast besturingselement. Voor dit voorbeeld geeft het aangepaste besturingselement de waarde weer via de alfa-instelling van de basiskleur.

/// <summary>
/// Specifies the current value of the control.
/// </summary>
/// <remarks>
/// For the purposes of this sample, the custom control displays 
/// its value through the alpha setting of the base color.
/// </remarks>
public double Value
{
    get 
    {
        return customControl.colorAlpha; 
    }
}
''' <summary>
''' Specifies the current value of the control.
''' </summary>
''' <remarks>
''' For the purposes of this sample, the custom control displays 
''' its value through the alpha setting of the base color.
''' </remarks>
Public ReadOnly Property Value() As Double Implements IRangeValueProvider.Value
    Get
        Return customControl.colorAlpha
    End Get
End Property

Van toepassing op

Zie ook