LinkNode

Description

sealed class Tinman.Core.Document.LinkNode

Derived from

DocumentNode abstract
ITextContentNode

An inline node in a text document that represents a link.

Public / Constructors

Link​Node

3 overloads


public constructor LinkNode1 → ()

Creates a new instance of LinkNode.


public constructor LinkNode2 → (1)

link in : string

[not-null]
Initial value for Link.

Creates a new instance of LinkNode.


public constructor LinkNode3 → (2)

link in : string

[not-null]
Initial value for Link.

text in : string

[not-null]
Initial value for Text.

Creates a new instance of LinkNode.

Public / Attributes

Config


public attribute Config → (get)

value : ConfigNode

The target config node or null.

The config node this link refers to.

Is​Anchor


public attribute IsAnchor → (get)

value : bool

true if this link refers to a document anchor, false if not.

Is this a link to an anchor (see AnchorNode)?

Is​Config


public attribute IsConfig → (get)

value : bool

true if this link refers to a config node, false if not.

Is this a link to a config node (see ConfigNode.ForName)?


public attribute Link → (get,set)

value : string

[not-null]
The link value.

The link value.

If the link value starts with '#', it will be treated as a reference to an anchor. Otherwise, it will be treated as a config type reference, if it can be parsed as a identifier list separated by '.'.

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.

Serialization

Serial​Id


public static readonly attribute SerialId → (ISerialTypeInfo)

Serialization information about this type.