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())