TabletDevice.StylusDevices 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得與 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