menu
light_mode dark_mode routine

Class Text code

命名空间
Another_Mirai_Native.Abstractions.Models.MessageItem
程序集
Another-Mirai-Native.Abstractions.dll

纯文本消息片段。

public class Text : MessageItemBase
继承
Text
继承成员

构造函数

Text(string) code

纯文本消息片段。

public Text(string text)

参数

text string

文本内容。

属性

Content code

文本内容。

public string Content { get; set; }

属性值

string

MessageItemType code

获取或设置消息片段类型。

public override MessageItemType MessageItemType { get; set; }

属性值

MessageItemType

方法

ToString() code

返回当前消息片段的 CQ 码字符串表示。

public override string ToString()

返回值

string

CQ 码文本。