ComponentFactory.Krypton.Docking.KryptonDockingWorkspace.HidePages C# (CSharp) Method

HidePages() public method

Hide all display elements of the provided pages.
public HidePages ( KryptonPage pages ) : void
pages ComponentFactory.Krypton.Navigator.KryptonPage Array of references to pages that should be hidden.
return void
        public void HidePages(KryptonPage[] pages)
        {
            // Cannot hide a null reference
            if (pages == null)
                throw new ArgumentNullException("pages");

            if (pages.Length > 0)
            {
                // Cannot hide a null page reference
                string[] uniqueNames = new string[pages.Length];
                for (int i = 0; i < uniqueNames.Length; i++)
                {
                    // Cannot show a null page reference
                    if (pages[i] == null)
                        throw new ArgumentException("pages array contains a null page reference");

                    uniqueNames[i] = pages[i].UniqueName;
                }

                HidePages(uniqueNames);
            }
        }

Same methods

KryptonDockingWorkspace::HidePages ( string uniqueNames ) : void