Table of Contents

Method Rename

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

Rename(string, string)

Renames a configuration saved, as Rename on the Viewports dialog's Named Viewports tab does. One undo step.

public string Rename(string name, string newName)

Parameters

name string

The name it has, either case.

newName string

The name it takes.

Returns

string

Null where renamed, where the name is the same or where no configuration has the name; else what AutoCAD says: "Invalid viewport configuration name." for an empty name or one with any of < > / \ " : ; ? * | , = `, or "Viewport configuration "Plan" already exists.".