StylusButton Klasa

Definicja

Reprezentuje przycisk w stylus.

public ref class StylusButton
public class StylusButton
type StylusButton = class
Public Class StylusButton
Dziedziczenie
StylusButton

Przykłady

Poniżej sprawdza, czy użytkownik nacisnął przycisk beczki na 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

Właściwości

Guid

Guid Pobiera przycisk stylus, który reprezentuje przycisk stylus.

Name

Pobiera nazwę przycisku stylus.

StylusButtonState

Pobiera stan przycisku stylus.

StylusDevice

Pobiera stylus, do którego należy ten przycisk.

Metody

Equals(Object)

Określa, czy dany obiekt jest taki sam, jak bieżący obiekt.

(Odziedziczone po Object)
GetHashCode()

Służy jako domyślna funkcja skrótu.

(Odziedziczone po Object)
GetType()

Type Pobiera bieżące wystąpienie.

(Odziedziczone po Object)
MemberwiseClone()

Tworzy płytkią kopię bieżącego Objectelementu .

(Odziedziczone po Object)
ToString()

Tworzy reprezentację ciągu elementu StylusButton.

Dotyczy