Interface IEmote
- Namespace
- HeyBox
- Assembly
- HeyBox.Net.Core.dll
表示一个通用的表情符号。
public interface IEmote : IEntity<string>
- Inherited Members
Properties
Group
获取此表情符号的分组。
string Group { get; }
Property Value
Name
获取此表情符号的显示名称。
string? Name { get; }
Property Value
Methods
Parse(string)
尝试从一个表情符号的原始格式中解析出一个 Emoji。
public static IEmote Parse(string text)
Parameters
text
string表情符号的原始格式。例如
[cube_摸摸头]
。
Returns
Exceptions
- ArgumentException
无法解析
text
为一个有效的表情符号。
TryParse(string, out IEmote?)
从一个表情符号的原始格式中解析出一个 Emoji。
public static bool TryParse(string text, out IEmote? result)
Parameters
Returns
- bool
如果解析成功,则为
true
;否则为false
。