Share via


StylusDevice.Inverted 속성

정의

스타일러스의 보조 팁이 사용되고 있는지 여부를 나타내는 값을 가져옵니다.

public:
 property bool Inverted { bool get(); };
public bool Inverted { get; }
member this.Inverted : bool
Public ReadOnly Property Inverted As Boolean

속성 값

스타일러스의 보조 팁이 사용되고 있으면 true이고, 그렇지 않으면 false입니다. 기본값은 false입니다.

예제

다음 예제는 Inverted 속성입니다.

private void OnStylusMove(object sender, StylusEventArgs e)
{
    StylusDevice myStylusDevice = e.StylusDevice;

    if (myStylusDevice != null)
    {
        if (myStylusDevice.Inverted)
        {
            textbox1.Text = "stylus moves with eraser down";
        }
        else
        {
            textbox1.Text = "stylus moves with pen down";
        }
    }
}
Private Sub OnStylusMove(ByVal sender As Object, _
                         ByVal e As StylusEventArgs)

    Dim myStylusDevice As StylusDevice
    myStylusDevice = e.StylusDevice
    If myStylusDevice.Inverted = True Then
        textbox1.Text = "stylus moves with eraser down"
    Else
        textbox1.Text = "stylus moves with pen down"
    End If
End Sub

적용 대상