Compartir a través de


Stroke.GetPacketDescriptionPropertyMetrics Method

Returns the metrics for a given packet description type.

Namespace: Microsoft.Ink
Assembly: Microsoft.Ink (in microsoft.ink.dll)

Syntax

'Declaration
Public Function GetPacketDescriptionPropertyMetrics ( _
    id As Guid _
) As TabletPropertyMetrics
'Usage
Dim instance As Stroke
Dim id As Guid
Dim returnValue As TabletPropertyMetrics

returnValue = instance.GetPacketDescriptionPropertyMetrics(id)
public TabletPropertyMetrics GetPacketDescriptionPropertyMetrics (
    Guid id
)
public:
TabletPropertyMetrics GetPacketDescriptionPropertyMetrics (
    Guid id
)
public TabletPropertyMetrics GetPacketDescriptionPropertyMetrics (
    Guid id
)
public function GetPacketDescriptionPropertyMetrics (
    id : Guid
) : TabletPropertyMetrics
Not applicable.

Parameters

  • id
    The Guid from the PacketProperty object, which identifies the property for which to obtain metrics.

Return Value

Returns the metrics for a given packet description type.

Example

This C# example gets the metrics for the NormalPressure packet property from the Stroke object, theStroke.

TabletPropertyMetrics theMetric =
    theStroke.GetPacketDescriptionPropertyMetrics(PacketProperty.NormalPressure);

This Microsoft® Visual Basic® .NET example gets the metrics for the NormalPressure packet property from the Stroke object, theStroke.

Dim theMetric As TabletPropertyMetrics
theMetric = theStroke.GetPacketDescriptionPropertyMetrics( _
    PacketProperty.NormalPressure)

Platforms

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

Stroke Class
Stroke Members
Microsoft.Ink Namespace
Microsoft.Ink.Stroke.GetPacketValuesByProperty
Microsoft.Ink.Stroke.SetPacketValuesByProperty
Tablet.GetPropertyMetrics