Tinkr2/4.2/AphelionCore/AphelionExtendedControls/Controls/Menus/MenuItem.cs
/// <summary>
/// Removes item at specific point in array
/// </summary>
/// <param name="index"></param>
Removes item at specific point in array
Removes item at specific point in array
public void RemoveMenuItemAt(int index)
      {
         if (_items.Length == 1)
         {
            ClearMenuItems();
            return;
         }
         var tmp = new MenuItem[_items.Length - 1];
         int c = 0;
         for (int i = 0; i < _items.Length; i++)
         {
            if (i != index)
               tmp[c++] = _items[i];
         }
         _items = tmp;
         Invalidate();
      }
public void RemoveMenuItemAt ( int index ) { if ( _items . Length == 1 ) { ClearMenuItems ( ) ; return ; } var tmp = new MenuItem [ _items . Length - 1 ] ; int c = 0 ; for ( int i = 0 ; i < _items . Length ; i ++ ) { if ( i != index ) tmp [ c ++ ] = _items [ i ] ; } _items = tmp ; Invalidate ( ) ; }
Removes item at specific point in array
Removes item at specific point in array
index
int
None