Table of Contents

Class HeaderModule

Namespace
Kook
Assembly
Kook.Net.Core.dll

标题模块,可用于 ICard 中。

public class HeaderModule : IModule, IEquatable<HeaderModule>, IEquatable<IModule>
Inheritance
HeaderModule
Implements
Inherited Members
Extension Methods

Properties

Text

获取模块的标题内容。

public PlainTextElement? Text { get; }

Property Value

PlainTextElement

Type

获取模块的类型。

public ModuleType Type { get; }

Property Value

ModuleType

Methods

Equals(HeaderModule?)

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

public bool Equals(HeaderModule? headerModule)

Parameters

headerModule HeaderModule

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 ==(HeaderModule, HeaderModule)

判定两个 HeaderModule 是否相等。

public static bool operator ==(HeaderModule left, HeaderModule right)

Parameters

left HeaderModule
right HeaderModule

Returns

bool

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

operator !=(HeaderModule, HeaderModule)

判定两个 HeaderModule 是否不相等。

public static bool operator !=(HeaderModule left, HeaderModule right)

Parameters

left HeaderModule
right HeaderModule

Returns

bool

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