static int get_pivot(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIGridContainer obj = (UIGridContainer)o;
            UIWidget.Pivot  ret = obj.pivot;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index pivot on a nil value"));
        }
    }
    static int set_arrangement(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIGridContainer             obj  = (UIGridContainer)o;
            UIGridContainer.Arrangement arg0 = (UIGridContainer.Arrangement)ToLua.CheckObject(L, 2, typeof(UIGridContainer.Arrangement));
            obj.arrangement = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index arrangement on a nil value"));
        }
    }
    static int get_onReposition(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIGridContainer obj = (UIGridContainer)o;
            UIGridContainer.OnReposition ret = obj.onReposition;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index onReposition on a nil value"));
        }
    }
    static int set_CellWidth(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIGridContainer obj  = (UIGridContainer)o;
            float           arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
            obj.CellWidth = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index CellWidth on a nil value"));
        }
    }
    static int set_MaxCount(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIGridContainer obj  = (UIGridContainer)o;
            int             arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
            obj.MaxCount = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index MaxCount on a nil value"));
        }
    }
    static int set_controlTemplate(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIGridContainer        obj  = (UIGridContainer)o;
            UnityEngine.GameObject arg0 = (UnityEngine.GameObject)ToLua.CheckObject(L, 2, typeof(UnityEngine.GameObject));
            obj.controlTemplate = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index controlTemplate on a nil value"));
        }
    }
    static int get_controlList(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIGridContainer obj = (UIGridContainer)o;
            System.Collections.Generic.List <UnityEngine.GameObject> ret = obj.controlList;
            ToLua.PushSealed(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index controlList on a nil value"));
        }
    }
    static int set_onReposition(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIGridContainer obj = (UIGridContainer)o;
            UIGridContainer.OnReposition arg0 = (UIGridContainer.OnReposition)ToLua.CheckDelegate <UIGridContainer.OnReposition>(L, 2);
            obj.onReposition = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index onReposition on a nil value"));
        }
    }
    static int set_sorting(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIGridContainer         obj  = (UIGridContainer)o;
            UIGridContainer.Sorting arg0 = (UIGridContainer.Sorting)ToLua.CheckObject(L, 2, typeof(UIGridContainer.Sorting));
            obj.sorting = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index sorting on a nil value"));
        }
    }
    static int get_arrangement(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIGridContainer             obj = (UIGridContainer)o;
            UIGridContainer.Arrangement ret = obj.arrangement;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index arrangement on a nil value"));
        }
    }
    static int get_MaxCount(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIGridContainer obj = (UIGridContainer)o;
            int             ret = obj.MaxCount;
            LuaDLL.lua_pushinteger(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index MaxCount on a nil value"));
        }
    }
    static int get_CellHeight(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIGridContainer obj = (UIGridContainer)o;
            float           ret = obj.CellHeight;
            LuaDLL.lua_pushnumber(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index CellHeight on a nil value"));
        }
    }
    static int get_sorting(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIGridContainer         obj = (UIGridContainer)o;
            UIGridContainer.Sorting ret = obj.sorting;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index sorting on a nil value"));
        }
    }
    static int set_controlList(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIGridContainer obj = (UIGridContainer)o;
            System.Collections.Generic.List <UnityEngine.GameObject> arg0 = (System.Collections.Generic.List <UnityEngine.GameObject>)ToLua.CheckObject(L, 2, typeof(System.Collections.Generic.List <UnityEngine.GameObject>));
            obj.controlList = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index controlList on a nil value"));
        }
    }
    static int get_controlTemplate(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIGridContainer        obj = (UIGridContainer)o;
            UnityEngine.GameObject ret = obj.controlTemplate;
            ToLua.PushSealed(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index controlTemplate on a nil value"));
        }
    }
        public void Init(params object[] objs)
        {
            uIGridContainer          = new UIGridContainer <UIExcelTool_FileSelectItemTemp>(TableGridPanel);
            uIGridContainer.MaxCount = 20;

            SelectFilePath = new UIExcelTool_FolderSelctPathTemp("表格目录");
            SelectFilePath.Show();
            FolderPathPanel.Controls.Add(SelectFilePath);


            OutFolderPath = new UIExcelTool_FolderSelctPathTemp("输出目录:");
            OutFolderPath.Show();
            FolderPathPanel.Controls.Add(OutFolderPath);

            ClientEventHandler.AddEvent(EClientEvent.ExcelTranslateFolderSettingUpdate, OnExcelTranslateFolderSettingUpdate);

            LoadExcel_TranslateFolderSetting();
        }
 void OnEnable()
 {
     mUiGrid = target as UIGridContainer;
 }