Table of Contents

Method Paste

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

Paste(CadToolPalette, int)

Puts copies of the tools on the clipboard into a palette, at a place of its list; the clipboard stays full, so they can be pasted again.

public IReadOnlyList<CadTool> Paste(CadToolPalette palette, int index)

Parameters

palette CadToolPalette

The palette.

index int

The place of the first, as Insert(int, CadTool) counts it; past the end puts them last.

Returns

IReadOnlyList<CadTool>

The tools made, in order; none where the clipboard is empty.

Exceptions

ArgumentNullException

Thrown when the palette is null.