ComponentFactory.Krypton.Docking.KryptonDockingSpace.PropogateCellList C# (CSharp) Метод

PropogateCellList() публичный Метод

Propogates a workspace cell list request down the hierarchy of docking elements.
public PropogateCellList ( DockingPropogateCellList state, KryptonWorkspaceCellList cells ) : void
state DockingPropogateCellList Request that should result in the cells collection being modified.
cells KryptonWorkspaceCellList Cells collection for modification by the docking elements.
Результат void
        public override void PropogateCellList(DockingPropogateCellList state, KryptonWorkspaceCellList cells)
        {
            switch (state)
            {
                case DockingPropogateCellList.All:
                case DockingPropogateCellList.Docked:
                case DockingPropogateCellList.Floating:
                case DockingPropogateCellList.Workspace:
                    {
                        // If the request relevant to this space control?
                        if ((state == DockingPropogateCellList.All) ||
                            ((state == DockingPropogateCellList.Docked) && (ClearStoreAction == DockingPropogateAction.ClearDockedStoredPages)) ||
                            ((state == DockingPropogateCellList.Floating) && (ClearStoreAction == DockingPropogateAction.ClearFloatingStoredPages)) ||
                            ((state == DockingPropogateCellList.Workspace) && (ClearStoreAction == DockingPropogateAction.ClearFillerStoredPages)))
                        {
                            // Find each cell in turn
                            KryptonWorkspaceCell cell = SpaceControl.FirstCell();
                            while (cell != null)
                            {
                                cells.Add(cell);
                                cell = SpaceControl.NextCell(cell);
                            }
                        }
                    }
                    break;
            }

            // Let base class perform standard processing
            base.PropogateCellList(state, cells);
        }