Table of Contents

Method DeletePageSetup

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

DeletePageSetup(CadDocument, string)

Takes a page setup out of the drawing, as Delete on the Page Setup Manager's list does, one undo step named PAGESETUP. A layout that was set to it keeps its settings and is set to no page setup.

public static CadEditResult DeletePageSetup(CadDocument document, string name)

Parameters

document CadDocument

The document.

name string

The 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.

Exceptions

ArgumentNullException

Thrown when an argument is null.