共用方式為


TabletDevice.StylusDevices 屬性

定義

取得與 Tablet 裝置相關的 StylusDeviceCollection

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

屬性值

與 Tablet 裝置相關的 StylusDeviceCollection

範例

下列程式代碼範例示範 StylusDevices 屬性。

// 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

適用於