StylusDevice.Inverted Özellik
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Ekran kaleminin ikincil ucunun kullanımda olup olmadığını gösteren bir değer alır.
public:
property bool Inverted { bool get(); };
public bool Inverted { get; }
member this.Inverted : bool
Public ReadOnly Property Inverted As Boolean
Özellik Değeri
true ekran kaleminin ikincil ucu kullanımdaysa; aksi takdirde , false. Varsayılan değer: false.
Örnekler
Aşağıdaki örnekte özelliği gösterilmektedir 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