Class PlainTextNode
- Namespace
- HeyBox
- Assembly
- HeyBox.Net.Core.dll
纯文本节点,可用于 IModule 中。
public class PlainTextNode : ITextNode, INode, IEquatable<PlainTextNode>, IEquatable<INode>
- Inheritance
-
PlainTextNode
- Implements
- Inherited Members
- Extension Methods
Properties
Text
获取文本节点的文本。
public string Text { get; }
Property Value
Type
获取节点的类型。
public NodeType Type { get; }
Property Value
Width
获取节点的宽度。
public NodeWidth? Width { get; }
Property Value
Methods
Equals(PlainTextNode?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(PlainTextNode? plainTextNode)
Parameters
plainTextNode
PlainTextNode
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
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 ==(PlainTextNode?, PlainTextNode?)
判定两个 PlainTextNode 是否相等。
public static bool operator ==(PlainTextNode? left, PlainTextNode? right)
Parameters
left
PlainTextNoderight
PlainTextNode
Returns
- bool
如果两个 PlainTextNode 相等,则为
true
;否则为false
。
operator !=(PlainTextNode?, PlainTextNode?)
判定两个 PlainTextNode 是否不相等。
public static bool operator !=(PlainTextNode? left, PlainTextNode? right)
Parameters
left
PlainTextNoderight
PlainTextNode
Returns
- bool
如果两个 PlainTextNode 不相等,则为
true
;否则为false
。