TabletDevice.SupportedStylusPointProperties 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取 StylusPointProperty 支持的 TabletDevice 对象的集合。
public:
property System::Collections::ObjectModel::ReadOnlyCollection<System::Windows::Input::StylusPointProperty ^> ^ SupportedStylusPointProperties { System::Collections::ObjectModel::ReadOnlyCollection<System::Windows::Input::StylusPointProperty ^> ^ get(); };
public System.Collections.ObjectModel.ReadOnlyCollection<System.Windows.Input.StylusPointProperty> SupportedStylusPointProperties { get; }
member this.SupportedStylusPointProperties : System.Collections.ObjectModel.ReadOnlyCollection<System.Windows.Input.StylusPointProperty>
Public ReadOnly Property SupportedStylusPointProperties As ReadOnlyCollection(Of StylusPointProperty)
属性值
StylusPointProperty 支持的 TabletDevice 对象的集合。
示例
以下示例演示如何获取 支持的属性 TabletDevice 。
TabletDevice currentTablet = Tablet.CurrentTabletDevice;
ReadOnlyCollection<StylusPointProperty> supportedProperties =
currentTablet.SupportedStylusPointProperties;
StringWriter properties = new StringWriter();
foreach (StylusPointProperty property in supportedProperties)
{
properties.WriteLine(property.ToString());
}
MessageBox.Show(properties.ToString());
Dim currentTablet As TabletDevice = Tablet.CurrentTabletDevice
Dim supportedProperties As ReadOnlyCollection(Of StylusPointProperty) _
= currentTablet.SupportedStylusPointProperties
Dim properties As New StringWriter()
For Each supportedProperty As StylusPointProperty In supportedProperties
properties.WriteLine(supportedProperty.ToString())
Next supportedProperty
MessageBox.Show(properties.ToString())