Show / Hide Table of Contents

Struct StylusPoint

Represents a single point collected while the user is entering ink strokes with the stylus or mouse.

Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: System.Windows.Input
Assembly: OpenSilver.dll
Syntax
public struct StylusPoint

Constructors

| Improve this Doc View Source

StylusPoint(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 Source

PressureFactor

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

  • Improve this Doc
  • View Source