FairyGUI.Utils.HtmlElement.Set C# (CSharp) Method

Set() public method

public Set ( string attrName, object attrValue ) : void
attrName string
attrValue object
return void
        public void Set(string attrName, object attrValue)
        {
            if (attributes == null)
                attributes = new Hashtable();

            attributes[attrName] = attrValue;
        }

Usage Example

示例#1
0
 static public int Set(IntPtr l)
 {
     try {
         FairyGUI.Utils.HtmlElement self = (FairyGUI.Utils.HtmlElement)checkSelf(l);
         System.String a1;
         checkType(l, 2, out a1);
         System.Object a2;
         checkType(l, 3, out a2);
         self.Set(a1, a2);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
All Usage Examples Of FairyGUI.Utils.HtmlElement::Set