Table of Contents

Class ImageElement

Namespace
Kook
Assembly
Kook.Net.Core.dll

图片元素,可用于 IModule 中。

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

Properties

Alternative

获取图像的替代文本。

public string? Alternative { get; }

Property Value

string

Circle

获取图片是否渲染为圆形。

public bool? Circle { get; }

Property Value

bool?

Size

获取图像的大小。

public ImageSize? Size { get; }

Property Value

ImageSize?

Source

获取图像的源。

public string Source { get; }

Property Value

string

Type

获取元素的类型。

public ElementType Type { get; }

Property Value

ElementType

Methods

Equals(ImageElement?)

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

public bool Equals(ImageElement? imageElement)

Parameters

imageElement ImageElement

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

判定两个 ImageElement 是否相等。

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

Parameters

left ImageElement
right ImageElement

Returns

bool

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

operator !=(ImageElement?, ImageElement?)

判定两个 ImageElement 是否不相等。

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

Parameters

left ImageElement
right ImageElement

Returns

bool

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