FairyGUI.GList.RemoveSelection C# (CSharp) Method

RemoveSelection() public method

public RemoveSelection ( int index ) : void
index int
return void
        public void RemoveSelection(int index)
        {
            if (selectionMode == ListSelectionMode.None)
                return;

            index = ItemIndexToChildIndex(index);
            if (index < 0 || index >= _children.Count)
                return;

            GButton obj = GetChildAt(index).asButton;
            if (obj != null && obj.selected)
                obj.selected = false;
        }

Usage Example

示例#1
0
 static public int RemoveSelection(IntPtr l)
 {
     try {
         FairyGUI.GList self = (FairyGUI.GList)checkSelf(l);
         System.Int32   a1;
         checkType(l, 2, out a1);
         self.RemoveSelection(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
All Usage Examples Of FairyGUI.GList::RemoveSelection