Compartilhar via


TabletDevice.SupportedStylusPointProperties Propriedade

Definição

Obtém uma coleção de objetos StylusPointProperty compatíveis com o 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)

Valor da propriedade

Uma coleção de StylusPointProperty objetos que o TabletDevice dá suporte.

Exemplos

O exemplo a seguir demonstra como obter as propriedades que um TabletDevice dá suporte.

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

Aplica-se a