IRangeValueProvider.Value プロパティ

定義

コントロールの値を取得します。

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

プロパティ値

Double

コントロールの値。コントロールがサポートValueされていない場合は null (NothingVisual Basic)。

次の例は、カスタム コントロールに対するこのメソッドの実装を示しています。 このサンプルの目的上、カスタム コントロールは、基本色のアルファ設定を通じて値を表示します。

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

適用対象

こちらもご覧ください