C# Class FairyGUI.Utils.HtmlElement

显示文件 Open project: fairygui/FairyGUI-unity Class Usage Examples

Public Properties

Property Type Description
format TextFormat
htmlObject IHtmlObject
name string
position UnityEngine.Vector2
space int
status int
text string
type HtmlElementType

Public Methods

Method Description
FetchAttributes ( ) : void
Get ( string attrName ) : object
GetBool ( string attrName ) : bool
GetBool ( string attrName, bool defValue ) : bool
GetColor ( string attrName, Color defValue ) : Color
GetElement ( HtmlElementType type ) : HtmlElement
GetFloat ( string attrName ) : float
GetFloat ( string attrName, float defValue ) : float
GetInt ( string attrName ) : int
GetInt ( string attrName, int defValue ) : int
GetString ( string attrName ) : string
GetString ( string attrName, string defValue ) : string
HtmlElement ( ) : System.Collections
ReturnElement ( HtmlElement element ) : void
ReturnElements ( List elements ) : void
Set ( string attrName, object attrValue ) : void

Method Details

FetchAttributes() public method

public FetchAttributes ( ) : void
return void

Get() public method

public Get ( string attrName ) : object
attrName string
return object

GetBool() public method

public GetBool ( string attrName ) : bool
attrName string
return bool

GetBool() public method

public GetBool ( string attrName, bool defValue ) : bool
attrName string
defValue bool
return bool

GetColor() public method

public GetColor ( string attrName, Color defValue ) : Color
attrName string
defValue UnityEngine.Color
return UnityEngine.Color

GetElement() public static method

public static GetElement ( HtmlElementType type ) : HtmlElement
type HtmlElementType
return HtmlElement

GetFloat() public method

public GetFloat ( string attrName ) : float
attrName string
return float

GetFloat() public method

public GetFloat ( string attrName, float defValue ) : float
attrName string
defValue float
return float

GetInt() public method

public GetInt ( string attrName ) : int
attrName string
return int

GetInt() public method

public GetInt ( string attrName, int defValue ) : int
attrName string
defValue int
return int

GetString() public method

public GetString ( string attrName ) : string
attrName string
return string

GetString() public method

public GetString ( string attrName, string defValue ) : string
attrName string
defValue string
return string

HtmlElement() public method

public HtmlElement ( ) : System.Collections
return System.Collections

ReturnElement() public static method

public static ReturnElement ( HtmlElement element ) : void
element HtmlElement
return void

ReturnElements() public static method

public static ReturnElements ( List elements ) : void
elements List
return void

Set() public method

public Set ( string attrName, object attrValue ) : void
attrName string
attrValue object
return void

Property Details

format public_oe property

public TextFormat format
return TextFormat

htmlObject public_oe property

public IHtmlObject htmlObject
return IHtmlObject

name public_oe property

public string name
return string

position public_oe property

public Vector2,UnityEngine position
return UnityEngine.Vector2

space public_oe property

public int space
return int

status public_oe property

public int status
return int

text public_oe property

public string text
return string

type public_oe property

public HtmlElementType type
return HtmlElementType