StylusPoint.GetPropertyValue(StylusPointProperty) Method

Definition

Returns the value of the specified property.

C#
public int GetPropertyValue(System.Windows.Input.StylusPointProperty stylusPointProperty);

Parameters

stylusPointProperty
StylusPointProperty

The StylusPointProperty that specifies which property value to get.

Returns

The value of the specified StylusPointProperty.

Exceptions

stylusPointProperty is not one of the properties in Description.

Examples

The following example checks for the existence of a stylus point property before getting the property's value. This example assumes that there is a StylusPoint called point.

C#
if (point.HasProperty(StylusPointProperties.PitchRotation))
{
    int pitchRotation = point.GetPropertyValue(StylusPointProperties.PitchRotation);
}

Remarks

To check whether the StylusPoint contains the specified property, call the HasProperty before calling either the GetPropertyValue method or the SetPropertyValue method.

Applies to

Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10