StylusPoint.MaxXY Field
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies the largest valid value for a pair of (x, y) coordinates.
public: static initonly double MaxXY;
public static readonly double MaxXY;
staticval mutable MaxXY : double
Public Shared ReadOnly MaxXY As Double
Field Value
Examples
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;
If x < StylusPoint.MinXY Then
x = StylusPoint.MinXY
ElseIf x > StylusPoint.MaxXY Then
x = StylusPoint.MaxXY
End If
point.X = x
Applies to
Sodelujte z nami v storitvi GitHub
Vir za to vsebino najdete v storitvi GitHub, kjer lahko tudi ustvarite in pregledate težave in zahtevke za uveljavitev sprememb. Če želite več informacij, glejte naš vodnik za sodelavce.