FairyGUI.GTextField.Setup_AfterAdd C# (CSharp) Method

Setup_AfterAdd() public method

public Setup_AfterAdd ( XML xml ) : void
xml FairyGUI.Utils.XML
return void
        public override void Setup_AfterAdd(XML xml)
        {
            base.Setup_AfterAdd(xml);

            UpdateTextFormat();

            string str = xml.GetAttribute("text");
            if (str != null && str.Length > 0)
                this.text = str;
        }

Usage Example

 static public int Setup_AfterAdd(IntPtr l)
 {
     try {
         FairyGUI.GTextField self = (FairyGUI.GTextField)checkSelf(l);
         FairyGUI.Utils.XML  a1;
         checkType(l, 2, out a1);
         self.Setup_AfterAdd(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
All Usage Examples Of FairyGUI.GTextField::Setup_AfterAdd