ComponentFactory.Krypton.Docking.DockingElement.FindPageElement C# (CSharp) Method

FindPageElement() public method

Find the docking element that contains the named page.
public FindPageElement ( string uniqueName ) : IDockingElement
uniqueName string Unique name of the page.
return IDockingElement
        public virtual IDockingElement FindPageElement(string uniqueName)
        {
            // Default to not finding the element
            IDockingElement dockingElement = null;

            // Search all child docking elements
            for (int i = 0; i < Count; i++)
            {
                dockingElement = this[i].FindPageElement(uniqueName);
                if (dockingElement != null)
                    break;
            }

            return dockingElement;
        }