예제 #1
0
        private void setHeaderStyle(ClosedXML.Excel.IXLWorksheet sheet, int startCellRow, int startCellCol, int endCellRow, int endCellCol)
        {
            var rang = sheet.Range(startCellRow, startCellCol, endCellRow, endCellCol);

            rang.Style.Font.Bold            = true;
            rang.Style.Font.FontColor       = ClosedXML.Excel.XLColor.White;
            rang.Style.Fill.BackgroundColor = ClosedXML.Excel.XLColor.LightGray;
            formateCells(rang);
        }
예제 #2
0
        private void setBorder(ClosedXML.Excel.IXLWorksheet sheet, int startCellRow, int startCellCol, int endCellRow, int endCellCol)
        {
            var rang = sheet.Range(startCellRow, startCellCol, endCellRow, endCellCol);

            formateCells(rang);
        }
예제 #3
0
 private void RipulisciFoglio(ClosedXML.Excel.IXLWorksheet meseSheet)
 {
     meseSheet.Range("A3:Z100").Clear(ClosedXML.Excel.XLClearOptions.Contents);
 }