StylusDevice.Inverted Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a value that indicates whether the secondary tip of the stylus is in use.
public:
property bool Inverted { bool get(); };
public bool Inverted { get; }
member this.Inverted : bool
Public ReadOnly Property Inverted As Boolean
Property Value
true
if the secondary tip of the stylus is in use; otherwise, false
. The default is false
.
Examples
The following example demonstrates the Inverted property.
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
Applies to
Συνεργαστείτε μαζί μας στο GitHub
Μπορείτε να βρείτε την πηγή για αυτό το περιεχόμενο στο GitHub, όπου μπορείτε επίσης να δημιουργήσετε και να εξετάσετε ζητήματα και αιτήματα έλξης. Για περισσότερες πληροφορίες, ανατρέξτε στον οδηγό συνεργατών.