ComponentFactory.Krypton.Ribbon.ViewDrawRibbonGroupGallery.ActualVisible C# (CSharp) Method

ActualVisible() private method

private ActualVisible ( Control c ) : bool
c System.Windows.Forms.Control
return bool
        private bool ActualVisible(Control c)
        {
            if (c != null)
            {
                // Start with the visible state of the group element
                bool visible = _ribbonGallery.Visible;

                // If we have an associated designer setup...
                if (!_ribbon.InDesignHelperMode && (_ribbonGallery.GalleryDesigner != null))
                {
                    // And we are not using the design helpers, then use the design specified value
                    visible = _ribbonGallery.GalleryDesigner.DesignVisible;
                }

                return visible;
            }

            return false;
        }