Method SetCurrentPageSetup
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
SetCurrentPageSetup(CadDocument, CadSpace, string)
Sets a space to a page setup of the drawing, as Set Current of the Page Setup Manager does, one undo step named
PAGESETUP: every setting of the page setup copied into the space's LAYOUT, its name with them, as AutoCAD's
CopyFrom copies them.
public static CadEditResult SetCurrentPageSetup(CadDocument document, CadSpace space, string name)
Parameters
documentCadDocumentThe document.
spaceCadSpaceThe space.
namestringThe page setup's name, letters of either case the same.
Returns
- CadEditResult
What came of the edit; refused where the drawing has no page setup of the name or the space has no LAYOUT.
Exceptions
- ArgumentNullException
Thrown when an argument is null.