Table of Contents

Method Export

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

Export(string, IEnumerable<CadToolPalette>)

Writes palettes to a file of their own, in the format of the set, for Import(string) to read on another machine.

public static void Export(string path, IEnumerable<CadToolPalette> palettes)

Parameters

path string

The file.

palettes IEnumerable<CadToolPalette>

The palettes.

Exceptions

ArgumentNullException

Thrown when the path or the palettes are null.

IOException

Thrown when the file cannot be written.

UnauthorizedAccessException

Thrown when the file may not be written.