1

I am creating a excel file by closedxml. I am able to set its cell value as shown below.

worksheet.Cell(rowPosition, cellPosition).Value="abc";

What I need is to set an Id of that cell which relates to its value and which is not visible to user. So when I again read this excel file programatically I can use this Id filed as Id is unique for me but not text.

Thanks in advance

4

2 回答 2

2

至于唯一的事物或 ID,您可以使用您的单元格编号 Ex: A1 作为 Id 的替换,但实际上不是,它是可见的,但与 ID 相比可以工作,因为属性 ID 不适用于 ClosedXML 属性。

于 2015-10-24T07:40:03.697 回答
1

ClosedXml does not expose any invisible properties of the cells.

You could use Named Ranges or Comments to mark the cells, but both are visible to the user in Excel.

于 2015-01-28T12:06:24.037 回答