FairyGUI.GList.RemoveChildAt C# (CSharp) Method

RemoveChildAt() public method

public RemoveChildAt ( int index, bool dispose ) : GObject
index int
dispose bool
return GObject
        public override GObject RemoveChildAt(int index, bool dispose)
        {
            GObject child = base.RemoveChildAt(index, dispose);
            child.onTouchBegin.Remove(__itemTouchBegin);
            child.onClick.Remove(__clickItem);

            return child;
        }

Usage Example

    static int RemoveChildAt(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(FairyGUI.GList), typeof(int)))
            {
                FairyGUI.GList   obj  = (FairyGUI.GList)ToLua.ToObject(L, 1);
                int              arg0 = (int)LuaDLL.lua_tonumber(L, 2);
                FairyGUI.GObject o    = obj.RemoveChildAt(arg0);
                ToLua.PushObject(L, o);
                return(1);
            }
            else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(FairyGUI.GList), typeof(int), typeof(bool)))
            {
                FairyGUI.GList   obj  = (FairyGUI.GList)ToLua.ToObject(L, 1);
                int              arg0 = (int)LuaDLL.lua_tonumber(L, 2);
                bool             arg1 = LuaDLL.lua_toboolean(L, 3);
                FairyGUI.GObject o    = obj.RemoveChildAt(arg0, arg1);
                ToLua.PushObject(L, o);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: FairyGUI.GList.RemoveChildAt"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
All Usage Examples Of FairyGUI.GList::RemoveChildAt