/// <summary> /// check if the bottom side of this group touch with specific range /// </summary> /// <param name="lowerGroupTopLeft"></param> /// <param name="lowerGroupTopRight"></param> /// <returns></returns> public bool BottomSideTouchWith(int lowerGroupTop, int lowerGroupTopLeft, int lowerGroupTopRight) { //[ THIS group ] //--------------------- //[ other (lower)group] return((lowerGroupTop != this.YBottom) ? false : HSpan.HorizontalTouchWith( XLeftBottom, XRightBottom, lowerGroupTopLeft, lowerGroupTopRight)); }
/// <summary> /// check if the top side of this group touch with specific range) /// </summary> /// <param name="upperBottomLeft"></param> /// <param name="upperBottomRight"></param> /// <returns></returns> public bool TopSideTouchWith(int upperBottom, int upperBottomLeft, int upperBottomRight) { //[ other (lower)group] //--------------------- //[ THIS group ] //find the first column that its top side touch with //another uppper group return((upperBottom != this.YTop) ? false : HSpan.HorizontalTouchWith( XLeftTop, XRightTop, upperBottomLeft, upperBottomRight)); }