跳到主要内容

HtmlElement

命名空间:FairyGUI.Utils
源码:Assets/Scripts/Utils/Html/HtmlElement.cs (行 26)

public class HtmlElement

构造函数​

HtmlElement()​

public HtmlElement();

源码:Utils/Html/HtmlElement.cs (行 41)

字段​

charIndex​

public int charIndex;

源码:Utils/Html/HtmlElement.cs (行 32)

format​

public TextFormat format;

源码:Utils/Html/HtmlElement.cs (行 31)

htmlObject​

public IHtmlObject htmlObject;

源码:Utils/Html/HtmlElement.cs (行 34)

name​

public string name;

源码:Utils/Html/HtmlElement.cs (行 29)

position​

public Vector2 position;

源码:Utils/Html/HtmlElement.cs (行 37)

space​

public int space;

源码:Utils/Html/HtmlElement.cs (行 36)

status​

public int status;

源码:Utils/Html/HtmlElement.cs (行 35)

text​

public string text;

源码:Utils/Html/HtmlElement.cs (行 30)

type​

public HtmlElementType type;

源码:Utils/Html/HtmlElement.cs (行 28)

方法​

FetchAttributes()​

public void FetchAttributes();

源码:Utils/Html/HtmlElement.cs (行 153)

Get(string)​

public object Get(string attrName);
参数类型说明
attrNamestring

源码:Utils/Html/HtmlElement.cs (行 46)

GetBool(string)​

public bool GetBool(string attrName);
参数类型说明
attrNamestring

源码:Utils/Html/HtmlElement.cs (行 126)

GetBool(string, bool)​

public bool GetBool(string attrName, bool defValue);
参数类型说明
attrNamestring
defValuebool

源码:Utils/Html/HtmlElement.cs (行 131)

GetColor(string, Color)​

public Color GetColor(string attrName, Color defValue);
参数类型说明
attrNamestring
defValueColor

源码:Utils/Html/HtmlElement.cs (行 144)

GetElement(HtmlElementType)​

public static HtmlElement GetElement(HtmlElementType type);
参数类型说明
typeHtmlElementType

源码:Utils/Html/HtmlElement.cs (行 176)

GetFloat(string)​

public float GetFloat(string attrName);
参数类型说明
attrNamestring

源码:Utils/Html/HtmlElement.cs (行 108)

GetFloat(string, float)​

public float GetFloat(string attrName, float defValue);
参数类型说明
attrNamestring
defValuefloat

源码:Utils/Html/HtmlElement.cs (行 113)

GetInt(string)​

public int GetInt(string attrName);
参数类型说明
attrNamestring

源码:Utils/Html/HtmlElement.cs (行 79)

GetInt(string, int)​

public int GetInt(string attrName, int defValue);
参数类型说明
attrNamestring
defValueint

源码:Utils/Html/HtmlElement.cs (行 84)

GetString(string)​

public string GetString(string attrName);
参数类型说明
attrNamestring

源码:Utils/Html/HtmlElement.cs (行 62)

GetString(string, string)​

public string GetString(string attrName, string defValue);
参数类型说明
attrNamestring
defValuestring

源码:Utils/Html/HtmlElement.cs (行 67)

ReturnElement(HtmlElement)​

public static void ReturnElement(HtmlElement element);
参数类型说明
elementHtmlElement

源码:Utils/Html/HtmlElement.cs (行 191)

ReturnElements(List<HtmlElement>)​

public static void ReturnElements(List<HtmlElement> elements);
参数类型说明
elementsList<HtmlElement>

源码:Utils/Html/HtmlElement.cs (行 202)

Set(string, object)​

public void Set(string attrName, object attrValue);
参数类型说明
attrNamestring
attrValueobject

源码:Utils/Html/HtmlElement.cs (行 54)

属性​

isEntity​

public bool isEntity { get; }

源码:Utils/Html/HtmlElement.cs (行 159)