📄 objectelement.cs
字号:
namespace Imps.Utils.TagParser
{
using System;
public class ObjectElement : TagElement
{
public ObjectElement(string name) : base(name)
{
}
public string Data
{
get
{
return base.GetAttributeString("data", "");
}
}
public int Height
{
get
{
return base.GetAttributeInt("height", -1);
}
}
public string Title
{
get
{
return base.GetAttributeString("title", "");
}
}
public ObjectType Type
{
get
{
switch (base.GetAttributeString("type", ""))
{
case "E":
case "Emotion":
return ObjectType.Emotion;
case "CE":
case "CustomizedEmotion":
return ObjectType.CustomizedEmotion;
case "Image":
return ObjectType.Image;
}
return ObjectType.Other;
}
}
public int Width
{
get
{
return base.GetAttributeInt("width", -1);
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -