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
bounds
RectangleFThe bounds of the pane on which to contain the rectangle.
p1
PointThe first point defining the selected rectangle.
p2
PointThe second point defining the selected rectangle.