StylusPoint.MinXY Field

 

Specifies the smallest valid value for a pair of (x, y) coordinates.

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

public static readonly double MinXY

Field Value

Type: System.Double

The following example ensures that the X property of the StylusPoint is set to a legal value.

if (x < StylusPoint.MinXY)
{
    x = StylusPoint.MinXY;
}
else if (x > StylusPoint.MaxXY)
{
    x = StylusPoint.MaxXY;
}

point.X = x;

.NET Framework
Available since 3.0
Return to top
Show: