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

适用于