StylusPoint.SetPropertyValue(StylusPointProperty, Int32) Method
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.
Sets the specified property to the specified value.
public:
void SetPropertyValue(System::Windows::Input::StylusPointProperty ^ stylusPointProperty, int value);
public void SetPropertyValue(System.Windows.Input.StylusPointProperty stylusPointProperty, int value);
member this.SetPropertyValue : System.Windows.Input.StylusPointProperty * int -> unit
Public Sub SetPropertyValue (stylusPointProperty As StylusPointProperty, value As Integer)
- stylusPointProperty
- StylusPointProperty
The StylusPointProperty that specifies which property value to set.
- value
- Int32
The value of the property.
stylusPointProperty
is not one of the properties in Description.
The following example checks for the existence of a stylus point property before setting the property's value. This example assumes that there is a StylusPoint called point
.
if (point.HasProperty(StylusPointProperties.PitchRotation))
{
point.SetPropertyValue(StylusPointProperties.PitchRotation, 1000);
}
If point.HasProperty(StylusPointProperties.PitchRotation) Then
point.SetPropertyValue(StylusPointProperties.PitchRotation, 1000)
End If
To check whether the StylusPoint contains the specified property, call the HasProperty before calling either the GetPropertyValue method or the SetPropertyValue method.
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 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: