Compartilhar via


Stroke.GetPacketDescriptionPropertyMetrics Method

Stroke.GetPacketDescriptionPropertyMetrics Method

Returns the metrics for a given packet description type.

Definition

Visual Basic .NET Public Function GetPacketDescriptionPropertyMetrics( _
ByVal id As Guid _
) As TabletPropertyMetrics
C# public TabletPropertyMetrics GetPacketDescriptionPropertyMetrics(
Guid id
);
Managed C++ public: TabletPropertyMetrics* GetPacketDescriptionPropertyMetrics(
Guid *id
);

Parameters

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

Return Value

Microsoft.Ink.TabletPropertyMetrics. Returns the metrics for a given packet description type.

Examples

[C#]

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

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

[VB.NET]

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)

                

See Also