แก้ไข

แชร์ผ่าน


StylusPoint.MinXY Field

Definition

Specifies the smallest valid value for a pair of (x, y) coordinates.

public: static initonly double MinXY;
public static readonly double MinXY;
 staticval mutable MinXY : double
Public Shared ReadOnly MinXY 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