RectangleFRestrict Method (RectangleF) |
Restricts the rectangle to be within the specified rectangle
Namespace:
Eto.Drawing
Assembly:
Eto (in Eto.dll) Version: 2.5.3-dev
Syntax public void Restrict(
RectangleF rectangle
)
Public Sub Restrict (
rectangle As RectangleF
)
member Restrict :
rectangle : RectangleF -> unit
Parameters
- rectangle
- Type: Eto.DrawingRectangleF
Rectangle to restrict this instance to
Remarks
This ensures that the current rectangle's bounds fall within the bounds of the specified rectangle.
It is useful to ensure that the rectangle does not exceed certain limits (e.g. for drawing)
See Also