TextNode

Description

sealed class Tinman.Core.Document.TextNode

Derived from

DocumentNode abstract
ITextContentNode

An inline node in a text document that represents a styled flow of text.

Public / Constructors

Text​Node

2 overloads


public constructor TextNode1 → ()

Creates a new instance of TextNode.


public constructor TextNode2 → (2)

text in : string

Initial value for Text.

style opt : TextStyle = TextStyle.Plain

Initial value for Style.

Creates a new instance of TextNode.

Public / Methods

Word


public method Word → (1)

index in : int32

[0..TextNode.Words-1]
The word index.

returns → string

The word content.

Returns a word of this text content.

Public / Attributes

Style


public attribute Style → (get,set)

value : TextStyle

The formatting style.

The formatting to apply to ITextContentNode.Text.

Text


public attribute Text → (get,set)

value : string

The text content.

The text content.

The text content never starts or ends with whitespaces. All other whitespace runs in the text are collapsed to single ' ' (i.e. '\u0020') characters.

Words


public attribute Words → (get)

value : int32

[>=0]
The number of words.

Returns the number of words in this text node.

Serialization

Serial​Id


public static readonly attribute SerialId → (ISerialTypeInfo)

Serialization information about this type.