Method AddCellStyle
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
AddCellStyle(string, string)
Makes a cell style of a name from one of the style's, as Create New Cell Style does: the new style takes the look of the one named (its table format copied into the table style's CELLSTYLEMAP, which a style the library holds is given first as Save(string) gives it), its id the next of 101 on.
public int AddCellStyle(string name, string startWith)
Parameters
namestringThe name of the new cell style.
startWithstringThe name of the cell style it starts from: Title, Header, Data or one a user made.
Returns
- int
The id of the new cell style.
Exceptions
- ArgumentNullException
Thrown when a name is null.
- ArgumentException
Thrown when the name is empty, is that of a cell style the style has, or the style to start from is none of its.
- InvalidOperationException
Thrown when the style is erased or not in a drawing of R2007 or later, or its extension dictionary holds no map of cell styles.