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
pathstringThe file; one there is written over.
sheetCadSheetThe cells.
byteOrderMarkboolWhether 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.