ZForge.Controls.ExplorerBar.Expando.MatchControlCollToItemColl C# (CSharp) Method

MatchControlCollToItemColl() private method

Make sure the controls index in the ControlCollection are the same as in the ItemCollection (indexes in the ItemCollection may have changed due to the user moving them around in the editor or calling ItemCollection.Move())
private MatchControlCollToItemColl ( ) : void
return void
        internal void MatchControlCollToItemColl()
        {
            this.SuspendLayout();

            for (int i=0; i<this.Items.Count; i++)
            {
                this.Controls.SetChildIndex(this.Items[i], i);
            }

            this.ResumeLayout(false);

            this.DoLayout();

            this.Invalidate(true);
        }