Επεξεργασία

Κοινή χρήση μέσω


StylusButton.StylusDevice Property

Definition

Gets the stylus that this button belongs to.

public:
 property System::Windows::Input::StylusDevice ^ StylusDevice { System::Windows::Input::StylusDevice ^ get(); };
public System.Windows.Input.StylusDevice StylusDevice { get; }
member this.StylusDevice : System.Windows.Input.StylusDevice
Public ReadOnly Property StylusDevice As StylusDevice

Property Value

A StylusDevice that represents the stylus of the current StylusButton.

Examples

The following example demonstrates the StylusDevice property.

// Get the name of the StylusDevice to which the StylusButton is attached
textbox1.AppendText("StylusButton.StylusDevice: " + myStylusButton.StylusDevice.Name + "\n");
' Get the name of the StylusDevice to which the StylusButton is attached
textbox1.AppendText("StylusButton.StylusDevice: " + myStylusButton.StylusDevice.Name + vbCrLf)

Applies to