TextDocument

Description

sealed class Tinman.Core.Document.TextDocument

Derived from

ContentNode<IBlockNode> abstract

The TextDocument class is the root of a simple object model for formatted text documents.

Public / Constructors

From​File


public static method FromFile → (1)

file in : Path

[not-null]
The file path.

returns → TextDocument

The text document.

Creates a TextDocument from the file.

IOException

If an I/O error has occurred.

ValidatingException

If one or more parsing errors have occurred.

See also

DocumentUtil

From​String


public static method FromString → (1)

content in : string

[not-null]
The formatted text.

returns → TextDocument

The text document.

Creates a TextDocument from the given formatted text.

ValidatingException

If one or more parsing errors have occurred.

See also

DocumentUtil

Text​Document


public constructor TextDocument → ()

Creates a new instance of TextDocument.

Serialization

Serial​Id


public static readonly attribute SerialId → (ISerialTypeInfo)

Serialization information about this type.