private bool ActualVisible(Control c)
{
if (c != null)
{
// Start with the visible state of the group element
bool visible = _ribbonRichTextBox.Visible;
// If we have an associated designer setup...
if (!_ribbon.InDesignHelperMode && (_ribbonRichTextBox.RichTextBoxDesigner != null))
{
// And we are not using the design helpers, then use the design specified value
visible = _ribbonRichTextBox.RichTextBoxDesigner.DesignVisible;
}
return visible;
}
return false;
}