Class ButtonNode
- Namespace
- HeyBox
- Assembly
- HeyBox.Net.Core.dll
按钮节点,可用于 IModule 中。
public class ButtonNode : INode, IEquatable<ButtonNode>, IEquatable<INode>
- Inheritance
-
ButtonNode
- Implements
- Inherited Members
- Extension Methods
Properties
Event
获取按钮节点的事件。
public ButtonEvent Event { get; }
Property Value
Text
获取按钮节点的文本。
public string Text { get; }
Property Value
Theme
获取按钮节点的主题。
public ButtonTheme Theme { get; }
Property Value
Type
获取节点的类型。
public NodeType Type { get; }
Property Value
Value
获取按钮节点的值。
public string Value { get; }
Property Value
Width
获取节点的宽度。
public NodeWidth? Width { get; }
Property Value
Methods
Equals(ButtonNode?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(ButtonNode? buttonNode)
Parameters
buttonNode
ButtonNode
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.
Operators
operator ==(ButtonNode?, ButtonNode?)
判定两个 ButtonNode 是否相等。
public static bool operator ==(ButtonNode? left, ButtonNode? right)
Parameters
left
ButtonNoderight
ButtonNode
Returns
- bool
如果两个 ButtonNode 相等,则为
true
;否则为false
。
operator !=(ButtonNode?, ButtonNode?)
判定两个 ButtonNode 是否不相等。
public static bool operator !=(ButtonNode? left, ButtonNode? right)
Parameters
left
ButtonNoderight
ButtonNode
Returns
- bool
如果两个 ButtonNode 不相等,则为
true
;否则为false
。