Table of Contents

Class ParagraphStruct

Namespace
Kook
Assembly
Kook.Net.Core.dll

区域文本结构,可用于 IModule 中。

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

Properties

ColumnCount

获取区域文本的列数。

public int? ColumnCount { get; }

Property Value

int?

Fields

获取区域文本的文本块。

public ImmutableArray<IElement> Fields { get; }

Property Value

ImmutableArray<IElement>

Type

获取元素的类型。

public ElementType Type { get; }

Property Value

ElementType

Methods

Equals(ParagraphStruct?)

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

public bool Equals(ParagraphStruct? paragraphStruct)

Parameters

paragraphStruct ParagraphStruct

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

判定两个 ParagraphStruct 是否相等。

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

Parameters

left ParagraphStruct
right ParagraphStruct

Returns

bool

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

operator !=(ParagraphStruct?, ParagraphStruct?)

判定两个 ParagraphStruct 是否不相等。

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

Parameters

left ParagraphStruct
right ParagraphStruct

Returns

bool

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