コード例 #1
0
            public SpreadsheetPartAdapter(WorksheetPart worksheetPart, string name, uint index)
            {
                this.worksheetPart = worksheetPart;                // ?? throw new ArgumentNullException(nameof(worksheetPart));
                Name  = name;
                Index = index;
#if DEBUG
                sheetData = worksheetPart.Worksheet.Elements <SheetData>().First();
                cells     = worksheetPart.Worksheet.Descendants <Cell>();
                if (cells.Any())
                {
                    var cellText = worksheetPart.GetCellValue(sheetData.Elements <Row>().First().Elements <Cell>().First());
                }
#endif
            }