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