public ITableBuilder MergeCells(IRectangle rectangle) { target.MergeCells(rectangle.ToGlobalCoordinates(navigator.CurrentState.Origin)); return(this); }
private static bool IsMergedCellInBounds(this RenderingTemplate renderingTemplate, IRectangle mergedCellRelativePosition) { var origin = renderingTemplate.Range.UpperLeft; return(renderingTemplate.Range.Contains(mergedCellRelativePosition.ToGlobalCoordinates(origin))); }