StylusPoint.MaxXY Campo

Definición

Especifica el valor válido más alto en un par de coordenadas (x, y).

public: static initonly double MaxXY;
public static readonly double MaxXY;
 staticval mutable MaxXY : double
Public Shared ReadOnly MaxXY As Double 

Valor de campo

Ejemplos

En el ejemplo siguiente se garantiza que la X propiedad de StylusPoint se establece en un valor legal.

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

point.X = x;
If x < StylusPoint.MinXY Then
    x = StylusPoint.MinXY
ElseIf x > StylusPoint.MaxXY Then
    x = StylusPoint.MaxXY
End If

point.X = x

Se aplica a