OpenXML how to get cell in range
问题 Please help me to get cell in range (ex from A:1 to E:11 are all cells in rectangular). For now, my ideal is Worksheet worksheet = GetWorksheet(document, sheetName); SheetData sheetData = worksheet.GetFirstChild<SheetData>(); IEnumerable<Cell> cells = sheetData.Descendants<Cell>().Where(c => c.CellReference >= A:1 && c.CellReference <= E:11 && ); int t = cells.Count(); But this code does not work. Thanks 回答1: It won't be that easy to compare cell's CellReference with a string. And yes, what