Class SectionModule
- Namespace
- Kook
- Assembly
- Kook.Net.Core.dll
Represents a section module in card.
public class SectionModule : IModule, IEquatable<SectionModule>, IEquatable<IModule>
- Inheritance
-
SectionModule
- Implements
- Inherited Members
- Extension Methods
Properties
Accessory
Gets the accessory of the section.
public IElement? Accessory { get; }
Property Value
Mode
public SectionAccessoryMode? Mode { get; }
Property Value
- SectionAccessoryMode?
Left if the Accessory is to the left of Text, Right if the Accessory is to the right of Text,
Text
Gets the text of the section.
public IElement? Text { get; }
Property Value
Type
Gets the type of the module.
public ModuleType Type { get; }
Property Value
- ModuleType
A ModuleType value that represents the type of the module.
Methods
Equals(SectionModule?)
Determines whether the specified SectionModule is equal to the current SectionModule.
public bool Equals(SectionModule? sectionModule)
Parameters
sectionModule
SectionModuleThe SectionModule to compare with the current SectionModule.
Returns
- bool
true
if the specified SectionModule is equal to the current SectionModule; otherwise,false
.
Equals(object?)
Determines whether the specified SectionModule is equal to the current SectionModule.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current SectionModule.
Returns
- bool
true
if the specified SectionModule is equal to the current SectionModule; otherwise,false
.
Remarks
If the object passes is an SectionModule, Equals(SectionModule?) will be called to compare the 2 instances.
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
Operators
operator ==(SectionModule, SectionModule)
Determines whether the specified SectionModule is equal to the current SectionModule.
public static bool operator ==(SectionModule left, SectionModule right)
Parameters
left
SectionModuleright
SectionModule
Returns
- bool
true
if the specified SectionModule is equal to the current SectionModule; otherwise,false
.
operator !=(SectionModule, SectionModule)
Determines whether the specified SectionModule is not equal to the current SectionModule.
public static bool operator !=(SectionModule left, SectionModule right)
Parameters
left
SectionModuleright
SectionModule
Returns
- bool
true
if the specified SectionModule is not equal to the current SectionModule; otherwise,false
.