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

FromFile


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

FromString


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

TextDocument


public constructor TextDocument → ()

Creates a new instance of TextDocument.

Serialization

SerialId


public static readonly attribute SerialId → (ISerialTypeInfo)

Serialization information about this type.