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
)
Public Shared Function Restrict (
point As Point,
rectangle As Rectangle
) As Point
static member Restrict :
point : Point *
rectangle : Rectangle -> Point
Parameters
- point
- Type: Eto.DrawingPoint
Point to restrict - rectangle
- Type: Eto.DrawingRectangle
Rectangle to restrict the point within
Return Value
Type:
PointA new point that falls within the
rectangleSee Also