protected virtual RectangleD ViewDisplayBox(IDrawingView view) { if (view == null) { throw new ArgumentNullException("view"); } PointD center = Locate(); center = view.DrawingToView(center.X, center.Y); RectangleD displayBox = new RectangleD(center); displayBox.Inflate(Width / 2, Height / 2); displayBox.OffsetDot5(); return(displayBox); }
protected virtual RectangleD ViewDisplayBox(IDrawingView view) { if (view == null) throw new ArgumentNullException("view"); PointD center = Locate(); center = view.DrawingToView(center.X, center.Y); RectangleD displayBox = new RectangleD(center); displayBox.Inflate(Width/2, Height/2); displayBox.OffsetDot5(); return displayBox; }