Table of Contents

Method SaveView

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

SaveView(string)

Saves the view on screen under a name, as -VIEW Save does, with no layer snapshot; a name that is a view's already redefines it. The view is saved in the space shown, a layout's with the layout. One undo step named VIEW.

public void SaveView(string name)

Parameters

name string

The name: not empty, 255 letters at most, no space at either end and none of <>/":;?*|=`.

Exceptions

ArgumentNullException

Thrown when the name is null.

ArgumentException

Thrown when the name is not one a view can have.

InvalidOperationException

Thrown when the view on screen has no size to save.