Method RenamePageSetup
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
RenamePageSetup(CadDocument, string, string)
Gives a page setup of the drawing another name, as Rename on the Page Setup Manager's list does, one undo step
named PAGESETUP. A layout set to the page setup is set to it under its new name. A change of letters alone
(Small to SMALL) is a rename; another page setup's name, in either case, is not allowed.
public static CadEditResult RenamePageSetup(CadDocument document, string name, string newName)
Parameters
documentCadDocumentThe document.
namestringThe page setup's name now, letters of either case the same.
newNamestringThe new name, trimmed.
Returns
- CadEditResult
What came of the edit; refused where the drawing has no page setup of the name, the new name is not a good one (CheckPageSetupName(string)) or another page setup has it.
Exceptions
- ArgumentNullException
Thrown when an argument is null.