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

적용 대상

추가 정보