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
Type
获取元素的类型。
public ElementType Type { get; }
Property Value
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
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
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
ParagraphStructright
ParagraphStruct
Returns
- bool
如果两个 ParagraphStruct 相等,则为
true
;否则为false
。
operator !=(ParagraphStruct?, ParagraphStruct?)
判定两个 ParagraphStruct 是否不相等。
public static bool operator !=(ParagraphStruct? left, ParagraphStruct? right)
Parameters
left
ParagraphStructright
ParagraphStruct
Returns
- bool
如果两个 ParagraphStruct 不相等,则为
true
;否则为false
。