TabletPropertyDescription.TabletPropertyMetrics Property
Gets the metrics for this packet property.
Namespace: Microsoft.Ink
Assembly: Microsoft.Ink (in Microsoft.Ink.dll)
Syntax
'Declaration
Public ReadOnly Property TabletPropertyMetrics As TabletPropertyMetrics
'Usage
Dim instance As TabletPropertyDescription
Dim value As TabletPropertyMetrics
value = instance.TabletPropertyMetrics
public TabletPropertyMetrics TabletPropertyMetrics { get; }
public:
property TabletPropertyMetrics TabletPropertyMetrics {
TabletPropertyMetrics get ();
}
public function get TabletPropertyMetrics () : TabletPropertyMetrics
Property Value
Type: Microsoft.Ink.TabletPropertyMetrics
The metrics for this packet property.
Remarks
The metrics describe the range, resolution, and units of the packet property.
Examples
In this example, a new TabletPropertyDescription object is created. The TabletPropertyMetrics property exposes the TabletPropertyMetrics object that was used during instantiation.
Dim defTablet As Tablet = New Tablets().DefaultTablet
Dim Metrics As TabletPropertyMetrics = defTablet.GetPropertyMetrics(PacketProperty.NormalPressure)
Dim tabletPropDesc As TabletPropertyDescription = New TabletPropertyDescription(PacketProperty.NormalPressure, Metrics)
' metrics now accessible via the TabletPropertyMetrics property
Dim min As Integer = tabletPropDesc.TabletPropertyMetrics.Minimum
Tablet defTablet = new Tablets().DefaultTablet;
TabletPropertyMetrics Metrics = defTablet.GetPropertyMetrics(PacketProperty.NormalPressure);
TabletPropertyDescription tabletPropDesc = new TabletPropertyDescription(PacketProperty.NormalPressure, Metrics);
// metrics now accessible via the TabletPropertyMetrics property
int min = tabletPropDesc.TabletPropertyMetrics.Minimum;
Platforms
Windows 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information
.NET Framework
Supported in: 3.0
See Also
Reference
TabletPropertyDescription Class