Document Class
Definition
Section titled “Definition”Represents an ANSI.SYS formatted document.
public class Document : IDisposableInheritance object
Implements IDisposable
Constructors
Section titled “Constructors”Document(string)
Section titled “Document(string)”Creates a new document from the provided file name.
public Document(string file)Parameters
Section titled “Parameters”file string
The file to load.
Properties
Section titled “Properties”AnsiBytes
Section titled “AnsiBytes”Gets or sets the ANSI.SYS bytes that make up the document.
public byte[] AnsiBytes { get; set; }AnsiString
Section titled “AnsiString”A string representing the AnsiBytes.
public string AnsiString { get; }Stream
Section titled “Stream”A stream that points to the AnsiBytes.
public MemoryStream? Stream { get; }Methods
Section titled “Methods”~Document()
Section titled “~Document()”protected ~Document()FromAsciiString(string)
Section titled “FromAsciiString(string)”Creates a new document from an existing string representing ANSI.SYS codes and characters.
public static Document FromAsciiString(string ansiContent)Parameters
Section titled “Parameters”ansiContent string
The ANSI.SYS encoded string.
Returns
Section titled “Returns”Document
A new document.
FromBytes(byte[])
Section titled “FromBytes(byte[])”Creates a new document from an existing byte array representing ANSI.SYS codes and characters.
public static Document FromBytes(byte[] bytes)Parameters
Section titled “Parameters”bytes byte[]
The ANSI.SYS encoded byte array.
Returns
Section titled “Returns”Document
A new document.