IRangeValueProvider.Value Propiedad

Definición

Obtiene el valor del control.

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

Valor de propiedad

Double

Valor del control o null (Nothing en Visual Basic) si el control no admite Value.

Ejemplos

En el ejemplo siguiente se muestra una implementación de este método para un control personalizado. Para los fines de este ejemplo, el control personalizado muestra el valor a través del valor alfa de su color base.

/// <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

Se aplica a

Consulte también