public bool ObjectInRectangle(RectangleF rectangle, bool anyPoint) { RectangleF rectangleF = this.GetBoundingRectangle(BoundingRectangleType.All); if (anyPoint) { return(HitUtil.RectangleIntersect(rectangle, rectangleF)); } return(rectangle.Contains(rectangleF)); }