예제 #1
0
파일: HSSFCellStyle.cs 프로젝트: zhgl7688/-
 /// <summary>
 /// Initializes a new instance of the <see cref="HSSFCellStyle"/> class.
 /// </summary>
 /// <param name="index">The index.</param>
 /// <param name="rec">The record.</param>
 /// <param name="workbook">The workbook.</param>
 public HSSFCellStyle(short index, ExtendedFormatRecord rec, Fruit.Utils.NPOI.HSSF.Model.InternalWorkbook workbook)
 {
     this.workbook = workbook;
     this.index    = index;
     format        = rec;
 }
예제 #2
0
파일: HSSFCellStyle.cs 프로젝트: zhgl7688/-
        /// <summary>
        /// Get the contents of the format string, by looking up
        /// the DataFormat against the supplied workbook
        /// </summary>
        /// <param name="workbook">The workbook.</param>
        /// <returns></returns>
        public String GetDataFormatString(Fruit.Utils.NPOI.HSSF.Model.InternalWorkbook workbook)
        {
            HSSFDataFormat format = new HSSFDataFormat(workbook);

            return(format.GetFormat(DataFormat));
        }