Engines/FlatRedBallXNA/FlatRedBall/Gui/ListBoxBase.cs
/// <summary>
/// Returns the CollapseItem at index itemNumber traversing from the top of the list down.
/// </summary>
/// <remarks>
/// This method will skip over items that are children of collapsed items.  
/// The list is traversed
/// down ignoring hierarchy, but only counting "visible" items.
/// </remarks>
/// <param name="itemNumber">The index to return</param>
/// <returns>The item at index itemNumber.</returns>
Returns the CollapseItem at index itemNumber traversing from the top of the list down.
Returns the CollapseItem at index itemNumber traversing from the top of the list down .
public CollapseItem GetItem(int itemNumber)
        {
            int count = 0;
            CollapseItem tempItem = null;
            for (int i = 0; i < Items.Count; i++)
            {
                tempItem = Items[i].GetHighlighted(ref count, itemNumber);
                if (tempItem != null) return tempItem;
            }
            return null;
        }
public CollapseItem GetItem ( int itemNumber ) { int count = 0 ; CollapseItem tempItem = null ; for ( int i = 0 ; i < Items . Count ; i ++ ) { tempItem = Items [ i ] . GetHighlighted ( ref count , itemNumber ) ; if ( tempItem != null ) return tempItem ; } return null ; }
Returns the CollapseItem at index itemNumber traversing from the top of the list down.
Returns the CollapseItem at index itemNumber traversing from the top of the list down .
The item at index itemNumber.
The item at index itemNumber .
itemNumber
int
The index to return
The index to return
remarks
This method will skip over items that are children of collapsed items.
The list is traversed
down ignoring hierarchy, but only counting "visible" items.
This method will skip over items that are children of collapsed items . The list is traversed down ignoring hierarchy but only counting " visible " items .