Table of Contents

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

ButtonEvent

Text

获取按钮节点的文本。

public string Text { get; }

Property Value

string

Theme

获取按钮节点的主题。

public ButtonTheme Theme { get; }

Property Value

ButtonTheme

Type

获取节点的类型。

public NodeType Type { get; }

Property Value

NodeType

Value

获取按钮节点的值。

public string Value { get; }

Property Value

string

Width

获取节点的宽度。

public NodeWidth? Width { get; }

Property Value

NodeWidth?

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

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.

Operators

operator ==(ButtonNode?, ButtonNode?)

判定两个 ButtonNode 是否相等。

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

Parameters

left ButtonNode
right ButtonNode

Returns

bool

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

operator !=(ButtonNode?, ButtonNode?)

判定两个 ButtonNode 是否不相等。

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

Parameters

left ButtonNode
right ButtonNode

Returns

bool

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