Method GetNormalizedRectangle
- Namespace
- Bonsai.Design.Visualizers
- Assembly
- Bonsai.Design.Visualizers.dll
GetNormalizedRectangle(RectangleF, Point, Point)
Computes a rectangle defined by the specified points which is also contained inside the pane boundaries.
protected static Rectangle GetNormalizedRectangle(RectangleF bounds, Point p1, Point p2)
Parameters
boundsRectangleFThe bounds of the pane on which to contain the rectangle.
p1PointThe first point defining the selected rectangle.
p2PointThe second point defining the selected rectangle.