Struct StylusPoint
Represents a single point collected while the user is entering ink strokes with the stylus or mouse.
Inherited Members
Namespace: System.Windows.Input
Assembly: OpenSilver.dll
Syntax
public struct StylusPoint
Constructors
| Improve this Doc View SourceStylusPoint(Double, Double)
Initializes a new instance of the StylusPoint class.
Declaration
public StylusPoint(double x, double y)
Parameters
Type | Name | Description |
---|---|---|
System.Double | x | The x-coordinate of the StylusPoint in a pixel grid. |
System.Double | y | The y-coordinate of the StylusPoint in a pixel grid. |
Properties
| Improve this Doc View SourcePressureFactor
Gets or sets the pressure factor of the stylus on the screen.
Declaration
public float PressureFactor { get; set; }
Property Value
Type | Description |
---|---|
System.Single | The pressure factor of the stylus on the screen. The default is 0.5. |
Exceptions
Type | Condition |
---|---|
System.ArgumentOutOfRangeException | PressureFactoris set to a value that is less than 0 or greater than 1.0. |
X
Gets or sets the value for the x-coordinate of the StylusPoint.
Declaration
public double X { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The x-coordinate of the StylusPoint in a pixel grid. The default is 0. |
Exceptions
Type | Condition |
---|---|
System.ArgumentOutOfRangeException | X is set a value that evaluates to infinity or a value that is not a number. |
Y
Gets or sets the value for the y-coordinate of the StylusPoint.
Declaration
public double Y { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The y-coordinate of the StylusPoint in a pixel grid. The default is 0. |
Exceptions
Type | Condition |
---|---|
System.ArgumentOutOfRangeException | Y is set a value that evaluates to infinity or a value that is not a number. |