StylusPoint.MaxXY Champ

Définition

Spécifie la plus grande valeur valide pour une paire de coordonnées (x, y).

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

Valeur de champ

Exemples

L’exemple suivant garantit que la X propriété de est StylusPoint définie sur une valeur légale.

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

S’applique à