Table of Contents

Class SectionModule

Namespace
Kook
Assembly
Kook.Net.Core.dll

内容模块,可用于 ICard 中。

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

Properties

Accessory

获取模块的附加内容。

public IElement? Accessory { get; }

Property Value

IElement

Mode

获取模块的附加内容的位置。

public SectionAccessoryMode? Mode { get; }

Property Value

SectionAccessoryMode?

Text

获取模块的文本内容。

public IElement? Text { get; }

Property Value

IElement

Type

获取模块的类型。

public ModuleType Type { get; }

Property Value

ModuleType

Methods

Equals(SectionModule?)

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

public bool Equals(SectionModule? sectionModule)

Parameters

sectionModule SectionModule

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

判定两个 SectionModule 是否相等。

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

Parameters

left SectionModule
right SectionModule

Returns

bool

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

operator !=(SectionModule, SectionModule)

判定两个 SectionModule 是否不相等。

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

Parameters

left SectionModule
right SectionModule

Returns

bool

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