StylusPoint.MaxXY Feld

Definition

Gibt den größten gültigen Wert für ein (x, y)-Koordinatenpaar an.

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

Feldwert

Beispiele

Im folgenden Beispiel wird sichergestellt, dass die X -Eigenschaft von StylusPoint auf einen legalen Wert festgelegt ist.

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

Gilt für: