Engines/FlatRedBallXNA/FlatRedBall/Gui/CollapseItem.cs
/// <summary>
/// Adds an icon to the CollapseItem
/// </summary>
/// <remarks>
/// Do not use $ in the name of the icon as the Collapse list boxes use this character for 
/// icons such as + and - boxes for expanding CollapseItems with children.
/// </remarks>
/// <param name="top"></param>
/// <param name="bottom"></param>
/// <param name="left"></param>
/// <param name="right"></param>
/// <param name="name"></param>
Adds an icon to the CollapseItem
Adds an icon to the CollapseItem
public ListBoxIcon AddIcon(float top, float bottom, float left, float right, string name)
        {
            if(name.Contains("$"))
            {
                throw new ArgumentException("Don't use the $ character in icons.  This is reserved");
            }
            return AddIcon(top, bottom, left, right, name, icons.Count);
        }
public ListBoxIcon AddIcon ( float top , float bottom , float left , float right , string name ) { if ( name . Contains ( " " ) ) { throw new ArgumentException ( " " ) ; } return AddIcon ( top , bottom , left , right , name , icons . Count ) ; }
Adds an icon to the CollapseItem
Adds an icon to the CollapseItem
top
float
None
bottom
float
None
left
float
None
right
float
None
name
string
None
remarks
Do not use $ in the name of the icon as the Collapse list boxes use this character for
icons such as + and - boxes for expanding CollapseItems with children.
Do not use $ in the name of the icon as the Collapse list boxes use this character for icons such as + and - boxes for expanding CollapseItems with children .