StylusDevice.Inverted Properti
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Mendapatkan nilai yang menunjukkan apakah tip sekunder stylus sedang digunakan.
public:
property bool Inverted { bool get(); };
public bool Inverted { get; }
member this.Inverted : bool
Public ReadOnly Property Inverted As Boolean
Nilai Properti
true
jika ujung sekunder stylus sedang digunakan; jika tidak, false
. Default adalah false
.
Contoh
Contoh berikut menunjukkan Inverted properti .
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
Berlaku untuk
Berkolaborasi dengan kami di GitHub
Sumber untuk konten ini dapat ditemukan di GitHub, yang juga dapat Anda gunakan untuk membuat dan meninjau masalah dan menarik permintaan. Untuk informasi selengkapnya, lihat panduan kontributor kami.