/// <summary> /// 描画範囲を得る /// </summary> /// <returns></returns> /// <remarks>不完全版 2008/08/15</remarks> public override MbeRect OccupationRect() { MbeRect rc = new MbeRect(); rc = new MbeRect(GetPos(0), GetPos(0)); foreach (MbeObj obj in contentsObj) { rc.Or(obj.OccupationRect()); } rc.Or(refNum.OccupationRect()); return(rc); //int wm = (rc.Width+40000) / 2; //int hm = (rc.Height+40000) / 2; //return new MbeRect(new Point(rc.L - wm, rc.T + hm), new Point(rc.R + wm, rc.B - hm)); }
/// <summary> /// 描画範囲を得る /// </summary> /// <returns></returns> public virtual MbeRect OccupationRect() { MbeRect rc = new MbeRect(); rc = new MbeRect(GetPos(0), GetPos(0)); for (int i = 1; i < PosCount; i++) { rc.Or(GetPos(i)); } return(rc); }