PacketProperty Class
Defines values that specify the packet properties.
Namespace: Microsoft.Ink
Assembly: Microsoft.Ink (in Microsoft.Ink.dll)
Syntax
'Declaration
Public NotInheritable Class PacketProperty
'Usage
Dim instance As PacketProperty
public sealed class PacketProperty
public ref class PacketProperty sealed
public final class PacketProperty
Remarks
Globally unique identifiers (Guid) are used to identify packet properties, and these are available as read-only fields of the PacketProperty object. Use these Guid to access the available properties of a Tablet or a collection of Tablets.
Note
All packet values coming from the tablet hardware are 32-bit size integers.
Examples
In this example, a TabletPropertyMetrics object is created for the NormalPressure packet property and used to instantiate a TabletPropertyDescription object.
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;
Inheritance Hierarchy
System.Object
Microsoft.Ink.PacketProperty
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
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
Tablet.IsPacketPropertySupported