FlatRedBall.Gui.CollapseItem.Expand C# (CSharp) Method

Expand() public method

public Expand ( ) : void
return void
		public void Expand()
		{
            mExpanded = true;

			foreach (ListBoxIcon icon in mIconsReadOnly)
			{
				if (icon.Name == "$FRB_PLUS_BOX")
				{
					icon.Name = "$FRB_MINUS_BOX";

					icon.Left = 140 / 256.0f;
					icon.Right = 156 / 256.0f;
					icon.Top = 146 / 256.0f;
					icon.Bottom = 162 / 256.0f;
				}

			}
		}

Usage Example

Example #1
0
        internal void ClickOutliningButton(CollapseItem collapseItem, ListBoxBase collapseListBox, ListBoxIcon listBoxIcon)
        {
            if (listBoxIcon.Name == "$FRB_PLUS_BOX")
            {
                collapseItem.Expand();
            }
            else if (listBoxIcon.Name == "$FRB_MINUS_BOX")
            {
                collapseItem.Collapse();
            }

            collapseListBox.AdjustScrollSize();

        }