Table of Contents

Method Add

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

Add(string)

Makes an empty palette after the last, its name made unique, and shows it.

public CadToolPalette Add(string name)

Parameters

name string

The name wanted; blank is NewPaletteName.

Returns

CadToolPalette

The palette.

Add(CadToolPalette)

Puts a palette after the last, its name made unique, and shows it.

public CadToolPalette Add(CadToolPalette palette)

Parameters

palette CadToolPalette

The palette.

Returns

CadToolPalette

The palette.

Exceptions

ArgumentNullException

Thrown when the palette is null.

ArgumentException

Thrown when the set has the palette already.