Method Add
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
Add(CadDocument, string, string)
Adds a style, as New of the Multileader Style Manager: a copy of the settings of another (Start with), under a name no style of the drawing has, letters of either case the same; the dictionary ACAD_MLEADERSTYLE made where the drawing has none, and the named object dictionary first where the drawing was written without it. A copy of an annotative style is annotative, as AutoCAD's New starts from the style's Annotative box.
public static CadEditResult Add(CadDocument document, string name, string from)
Parameters
documentCadDocumentThe document.
namestringThe new name, as Detail notes.
fromstringThe style whose settings it takes; the presenter's metric Standard where null or none.
Returns
- CadEditResult
What came of it.
Exceptions
- ArgumentNullException
Thrown when the document is null.