ComponentFactory.Krypton.Docking.KryptonDockingAutoHiddenGroup.VisiblePages C# (CSharp) Method

VisiblePages() public method

Return an array of the visible pages that are inside the auto hidden group.
public VisiblePages ( ) : ComponentFactory.Krypton.Navigator.KryptonPage[]
return ComponentFactory.Krypton.Navigator.KryptonPage[]
        public KryptonPage[] VisiblePages()
        {
            List<KryptonPage> pages = new List<KryptonPage>();

            // Only interested in visible pages that are not placeholders
            foreach (KryptonPage page in AutoHiddenGroupControl.Pages)
                if ((page is KryptonAutoHiddenProxyPage) && page.LastVisibleSet)
                {
                    // Add the actual page this proxy wraps
                    KryptonAutoHiddenProxyPage proxyPage = (KryptonAutoHiddenProxyPage)page;
                    pages.Add(proxyPage.Page);
                }

            return pages.ToArray();
        }