示例#1
0
        public XlsWorksheet(XlsWorkbook workbook, XlsBiffBoundSheet refSheet, Stream stream)
        {
            Workbook = workbook;
            Stream   = stream;

            IsDate1904       = workbook.IsDate1904;
            Encoding         = workbook.Encoding;
            RowOffsetMap     = new Dictionary <int, XlsRowOffset>();
            DefaultRowHeight = 255; // 12.75 points

            Name       = refSheet.GetSheetName(workbook.Encoding);
            DataOffset = refSheet.StartOffset;

            VisibleState = refSheet.VisibleState switch
            {
                XlsBiffBoundSheet.SheetVisibility.Hidden => "hidden",
                XlsBiffBoundSheet.SheetVisibility.VeryHidden => "veryhidden",
                _ => "visible",
            };
            ReadWorksheetGlobals();
        }
示例#2
0
 public XlsWorksheet(int index, XlsBiffBoundSheet refSheet)
 {
     m_Index      = index;
     m_Name       = refSheet.SheetName;
     m_dataOffset = refSheet.StartOffset;
 }
示例#3
0
 public XlsWorksheet(int index, XlsBiffBoundSheet refSheet)
 {
     m_Index = index;
     m_Name = refSheet.SheetName;
     m_dataOffset = refSheet.StartOffset;
 }