StylusPoint.MaxXY Champ
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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