StylusPoint.GetPropertyValue(StylusPointProperty) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the value of the specified property.
public:
int GetPropertyValue(System::Windows::Input::StylusPointProperty ^ stylusPointProperty);
public int GetPropertyValue (System.Windows.Input.StylusPointProperty stylusPointProperty);
member this.GetPropertyValue : System.Windows.Input.StylusPointProperty -> int
Public Function GetPropertyValue (stylusPointProperty As StylusPointProperty) As Integer
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
.
if (point.HasProperty(StylusPointProperties.PitchRotation))
{
int pitchRotation = point.GetPropertyValue(StylusPointProperties.PitchRotation);
}
If point.HasProperty(StylusPointProperties.PitchRotation) Then
Dim pitchRotation As Integer = _
point.GetPropertyValue(StylusPointProperties.PitchRotation)
End If
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
Atsauksmes
https://aka.ms/ContentUserFeedback.
Drīzumā: 2024. gada laikā mēs pakāpeniski pārtrauksim izmantot “GitHub problēmas” kā atsauksmju par saturu mehānismu un aizstāsim to ar jaunu atsauksmju sistēmu. Papildinformāciju skatiet:Iesniegt un skatīt atsauksmes par