コード例 #1
0
 public ITableBuilder MergeCells(IRectangle rectangle)
 {
     target.MergeCells(rectangle.ToGlobalCoordinates(navigator.CurrentState.Origin));
     return(this);
 }
コード例 #2
0
        private static bool IsMergedCellInBounds(this RenderingTemplate renderingTemplate, IRectangle mergedCellRelativePosition)
        {
            var origin = renderingTemplate.Range.UpperLeft;

            return(renderingTemplate.Range.Contains(mergedCellRelativePosition.ToGlobalCoordinates(origin)));
        }