Table of Contents

Interface IEmote

Namespace
HeyBox
Assembly
HeyBox.Net.Core.dll

表示一个通用的表情符号。

public interface IEmote : IEntity<string>
Inherited Members

Properties

Group

获取此表情符号的分组。

string Group { get; }

Property Value

string

Name

获取此表情符号的显示名称。

string? Name { get; }

Property Value

string

Methods

Parse(string)

尝试从一个表情符号的原始格式中解析出一个 Emoji

public static IEmote Parse(string text)

Parameters

text string

表情符号的原始格式。例如 [cube_摸摸头]

Returns

IEmote

解析出的 Emoji

Exceptions

ArgumentException

无法解析 text 为一个有效的表情符号。

TryParse(string, out IEmote?)

从一个表情符号的原始格式中解析出一个 Emoji

public static bool TryParse(string text, out IEmote? result)

Parameters

text string

表情符号的原始格式。例如 [cube_摸摸头]

result IEmote

如果解析成功,则为解析出的 Emoji

Returns

bool

如果解析成功,则为 true;否则为 false