Community
Hi, I have created a table with several cells and wanted to lock the cell format in C#. I have searched the web and couldn't find anything about that. Could someone shed me some light on how to do this? Thanks a lot!
Solved! Go to Solution.
Solved by hgasty1001. Go to Solution.
Hi,
Depending of the Autocad version you can use SetCellState (it's obsolete now, but I don't know since when) or Table.Cells[i,j].State to lock the format of a table cell, this are the permited cell states:
[Wrapper("AcDb::CellState"), Flags] public enum CellStates { ContentLocked = 1, ContentModifiedAfterUpdate = 8, ContentReadOnly = 2, FormatLocked = 0x10, FormatModifiedAfterUpdate = 0x40, FormatReadOnly = 0x20, Linked = 4, None = 0 }
Gaston Nunez