Method AddStyle
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
AddStyle(string)
Adds a style to a named table, as Add Style of the editor does: one that changes nothing, its colour kind a named table's, last in the list.
public CadPlotStyle AddStyle(string name)
Parameters
namestringThe name, not one the table has, letters of either case the same, and none of
< > / \ " : ; ? * | , = `.
Returns
- CadPlotStyle
The style.
Exceptions
- InvalidOperationException
Thrown when the table is a colour-dependent one, whose styles are the 255 colours.
- ArgumentException
Thrown when the name is not a good one or the table has it.