Table of Contents

Class MarkdownNode

Namespace
HeyBox
Assembly
HeyBox.Net.Core.dll

Markdown 文本节点,可用于 IModule 中。

public class MarkdownNode : ITextNode, INode, IEquatable<MarkdownNode>, IEquatable<INode>
Inheritance
MarkdownNode
Implements
Inherited Members
Extension Methods

Properties

Text

获取文本节点的文本。

public string Text { get; }

Property Value

string

Type

获取节点的类型。

public NodeType Type { get; }

Property Value

NodeType

Width

获取节点的宽度。

public NodeWidth? Width { get; }

Property Value

NodeWidth?

Methods

Equals(MarkdownNode?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(MarkdownNode? markdownNode)

Parameters

markdownNode MarkdownNode

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

Operators

operator ==(MarkdownNode?, MarkdownNode?)

判定两个 MarkdownNode 是否相等。

public static bool operator ==(MarkdownNode? left, MarkdownNode? right)

Parameters

left MarkdownNode
right MarkdownNode

Returns

bool

如果两个 MarkdownNode 相等,则为 true;否则为 false

operator !=(MarkdownNode?, MarkdownNode?)

判定两个 MarkdownNode 是否不相等。

public static bool operator !=(MarkdownNode? left, MarkdownNode? right)

Parameters

left MarkdownNode
right MarkdownNode

Returns

bool

如果两个 MarkdownNode 不相等,则为 true;否则为 false