StylusPoint.GetPropertyValue Method (StylusPointProperty)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Returns the value of the specified property.

Namespace:   System.Windows.Input
Assembly:  PresentationCore (in PresentationCore.dll)

public int GetPropertyValue(
	StylusPointProperty stylusPointProperty
)

Parameters

stylusPointProperty
Type: System.Windows.Input.StylusPointProperty

The StylusPointProperty that specifies which property value to get.

Return Value

Type: System.Int32

The value of the specified StylusPointProperty.

Exception Condition
ArgumentException

stylusPointProperty is not one of the properties in Description.

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

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.

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

.NET Framework
Available since 3.0
Return to top
Show: