FairyGUI.GList.ScrollToView C# (CSharp) Method

ScrollToView() public method

Scroll the list to make an item with certain index visible.
public ScrollToView ( int index ) : void
index int Item index
return void
        public void ScrollToView(int index)
        {
            ScrollToView(index, false);
        }

Same methods

GList::ScrollToView ( int index, bool ani ) : void
GList::ScrollToView ( int index, bool ani, bool setFirst ) : void

Usage Example

示例#1
0
 static public int ScrollToView(IntPtr l)
 {
     try {
         int argc = LuaDLL.lua_gettop(l);
         if (argc == 2)
         {
             FairyGUI.GList self = (FairyGUI.GList)checkSelf(l);
             System.Int32   a1;
             checkType(l, 2, out a1);
             self.ScrollToView(a1);
             pushValue(l, true);
             return(1);
         }
         else if (argc == 3)
         {
             FairyGUI.GList self = (FairyGUI.GList)checkSelf(l);
             System.Int32   a1;
             checkType(l, 2, out a1);
             System.Boolean a2;
             checkType(l, 3, out a2);
             self.ScrollToView(a1, a2);
             pushValue(l, true);
             return(1);
         }
         else if (argc == 4)
         {
             FairyGUI.GList self = (FairyGUI.GList)checkSelf(l);
             System.Int32   a1;
             checkType(l, 2, out a1);
             System.Boolean a2;
             checkType(l, 3, out a2);
             System.Boolean a3;
             checkType(l, 4, out a3);
             self.ScrollToView(a1, a2, a3);
             pushValue(l, true);
             return(1);
         }
         pushValue(l, false);
         LuaDLL.lua_pushstring(l, "No matched override function to call");
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
All Usage Examples Of FairyGUI.GList::ScrollToView