Method Rename
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
Rename(CadDocument, string, string)
Renames a style with the tables drawn in it, as -RENAME Tablestyle does: the entry of the dictionary ACAD_TABLESTYLE takes the new name, which the tables follow since they point at the style by its handle, and the current style (CTABLESTYLE) names it where it was the one renamed. Standard keeps its name.
public static CadEditResult Rename(CadDocument document, string name, string newName)
Parameters
documentCadDocumentThe document.
namestringThe style's name, letters of either case the same.
newNamestringThe new name.
Returns
- CadEditResult
What came of it; the name it has already is done with nothing written.
Exceptions
- ArgumentNullException
Thrown when the document is null.