Method RenameStyle
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
RenameStyle(string, string)
Gives a style of a named table another name, as editing its name in the editor does.
public void RenameStyle(string name, string newName)
Parameters
namestringThe name now, letters of either case the same.
newNamestringThe new name, as AddStyle(string) takes it; a change of letters alone is a rename.
Exceptions
- InvalidOperationException
Thrown when the table is a colour-dependent one, or the style is Normal.
- ArgumentException
Thrown when the table has no style of the name, the new name is not a good one or another style has it.