ComponentFactory.Krypton.Docking.KryptonDockingSpace.CellVisiblePages C# (CSharp) Method

CellVisiblePages() public method

Return an array of the visible pages that are inside the cell that contains the provided unique name.
public CellVisiblePages ( string uniqueName ) : ComponentFactory.Krypton.Navigator.KryptonPage[]
uniqueName string Unique name of page that is inside the target cell.
return ComponentFactory.Krypton.Navigator.KryptonPage[]
        public KryptonPage[] CellVisiblePages(string uniqueName)
        {
            List<KryptonPage> pages = new List<KryptonPage>();

            // Grab the cell that contains the provided unique name
            KryptonWorkspaceCell cell = SpaceControl.CellForUniqueName(uniqueName);
            if (cell != null)
            {
                // Only interested in visible pages that are not placeholders
                foreach (KryptonPage page in cell.Pages)
                    if (!(page is KryptonStorePage) && page.LastVisibleSet)
                        pages.Add(page);
            }

            return pages.ToArray();
        }