Table of Contents

Class ParagraphStruct

Namespace
Kook
Assembly
Kook.Net.Core.dll

A paragraph struct that can be used in modules.

public class ParagraphStruct : IElement, IEquatable<ParagraphStruct>, IEquatable<IElement>
Inheritance
ParagraphStruct
Implements
Inherited Members
Extension Methods

Properties

ColumnCount

Gets the number of columns in the paragraph.

public int? ColumnCount { get; }

Property Value

int?

An int value that represents the number of columns in the paragraph.

Fields

Gets the fields in the paragraph.

public ImmutableArray<IElement> Fields { get; }

Property Value

ImmutableArray<IElement>

An ImmutableArray<T> array that contains the fields in the paragraph.

Type

Gets the type of the element.

public ElementType Type { get; }

Property Value

ElementType

An ElementType value that represents the theme of the button.

Methods

Equals(ParagraphStruct?)

Determines whether the specified ParagraphStruct is equal to the current ParagraphStruct.

public bool Equals(ParagraphStruct? paragraphStruct)

Parameters

paragraphStruct ParagraphStruct

The ParagraphStruct to compare with the current ParagraphStruct.

Returns

bool

true if the specified ParagraphStruct is equal to the current ParagraphStruct; otherwise, false.

Equals(object?)

Determines whether the specified ParagraphStruct is equal to the current ParagraphStruct.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current ParagraphStruct.

Returns

bool

true if the specified ParagraphStruct is equal to the current ParagraphStruct; otherwise, false.

Remarks

If the object passes is an ParagraphStruct, Equals(ParagraphStruct?) 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 ==(ParagraphStruct?, ParagraphStruct?)

Determines whether the specified ParagraphStruct is equal to the current ParagraphStruct.

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

Parameters

left ParagraphStruct
right ParagraphStruct

Returns

bool

true if the specified ParagraphStruct is equal to the current ParagraphStruct; otherwise, false.

operator !=(ParagraphStruct?, ParagraphStruct?)

Determines whether the specified ParagraphStruct is not equal to the current ParagraphStruct.

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

Parameters

left ParagraphStruct
right ParagraphStruct

Returns

bool

true if the specified ParagraphStruct is not equal to the current ParagraphStruct; otherwise, false.