How to implement column self-naming from its index?

前端 未结 2 839
悲&欢浪女
悲&欢浪女 2020-12-22 08:13

I wish to be able to instantiate my Cell class while naming the cell instance with such name as \"A\", \"B\", \"C\", etc. just like in an Excel spreadsheet.

2条回答
  •  自闭症患者
    2020-12-22 09:13

    Here is this. Translate a column index into an Excel Column Name

    Shouldn't be to hard to make it recursive and give you exactly what you need. I hope this helps.

提交回复
热议问题