TabletDevice.StylusDevices Eigenschaft

Definition

Ruft die StylusDeviceCollection ab, die dem Tablettgerät zugeordnet ist.

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

Eigenschaftswert

Die StylusDeviceCollection, die dem Tablettgerät zugeordnet ist.

Beispiele

Im folgenden Codebeispiel wird die StylusDevices -Eigenschaft veranschaulicht.

// Get the StylusDevice objects.
StylusDeviceCollection myStylusDeviceCollection = myTabletDevice.StylusDevices;

// Get the names of all of the of StylusDevice objects.
string[] myStylusDeviceNames = new string[myStylusDeviceCollection.Count];

for (int i = 0; i < myStylusDeviceCollection.Count; i++)
{
    myStylusDeviceNames[i] = myStylusDeviceCollection[i].Name;
}
' Get the StylusDevice objects.
Dim myStylusDeviceCollection As StylusDeviceCollection = myTabletDevice.StylusDevices

' Get the names of all of the of StylusDevice objects.
Dim myStylusDeviceNames() As String = New String(myStylusDeviceCollection.Count) {}


For i As Integer = 0 To myStylusDeviceCollection.Count - 1
    myStylusDeviceNames(i) = myStylusDeviceCollection(i).Name
Next

Gilt für: