コード例 #1
0
        public static ExcelWorksheet CopyWithoutContent(this ExcelWorksheets sheets, string name, string newName)
        {
            var sheet     = sheets.Copy(name, newName);
            var dimension = sheet.Dimension;

            sheet.Cells[dimension.Start.Row, dimension.Start.Column, dimension.End.Row, dimension.End.Column].Value = null;

            return(sheet);
        }
コード例 #2
0
        public ExcelWorksheetInstance Copy(string name, string newName)
        {
            var result = m_excelWorksheets.Copy(name, newName);

            return(new ExcelWorksheetInstance(this.Engine.Object.InstancePrototype, result));
        }
コード例 #3
0
 public IWorksheet Copy(string existingWorksheet, string newWorksheet)
 {
     return(new EPPlusWorksheet(_worksheets.Copy(existingWorksheet, newWorksheet)));
 }