StylusButton.Guid Property
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 the Guid that represents the stylus button.
public:
property Guid Guid { Guid get(); };
public Guid Guid { get; }
member this.Guid : Guid
Public ReadOnly Property Guid As Guid
The Guid property that represents the stylus button.
The following checks whether the user pressed the barrel button on a stylus.
void OnStylusButtonDown(object sender, StylusButtonEventArgs e)
{
StylusButton myStylusButton = e.StylusButton;
if (myStylusButton.Guid == StylusPointProperties.BarrelButton.Id)
{
// the barrel button on the stylus has been pressed
}
}
Private Sub OnStylusButtonDown(ByVal sender As Object, ByVal e As StylusButtonEventArgs)
Dim myStylusButton As StylusButton = e.StylusButton
If myStylusButton.Guid = StylusPointProperties.BarrelButton.Id Then
' the barrel button on the stylus has been pressed
End If
End Sub
The value of this property is guaranteed to be unique among stylus buttons on the system.
Produkt | Verzie |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
Pripomienky k produktu .NET
.NET je open-source projekt. Ak chcete poskytnúť pripomienky, vyberte prepojenie: