Click or drag to resize

PointRestrict Method (Point, Rectangle)

Restricts the X and Y co-ordinates of the specified point within the rectangle

Namespace:  Eto.Drawing
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
public static Point Restrict(
	Point point,
	Rectangle rectangle
)

Parameters

point
Type: Eto.DrawingPoint
Point to restrict
rectangle
Type: Eto.DrawingRectangle
Rectangle to restrict the point within

Return Value

Type: Point
A new point that falls within the rectangle
See Also