Table of Contents

Method Write

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

Write(string, CadSheet, bool)

Writes cells as a file: the words each shows, a field with a comma, a quote or a line break in double quotes, lines ending in a carriage return and a line feed, the file in UTF-8 with no byte order mark.

public static void Write(string path, CadSheet sheet, bool byteOrderMark = false)

Parameters

path string

The file; one there is written over.

sheet CadSheet

The cells.

byteOrderMark bool

Whether the file begins with the UTF-8 mark, as a file Excel saved does.

Exceptions

ArgumentNullException

Thrown when the path or the sheet is null.

IOException

Thrown when the file cannot be written.