windowsforms-devexpress-dot-xtrabars-dot-docking-dot-dockpanel-7109802f.md
Hides the panel.
Namespace : DevExpress.XtraBars.Docking
Assembly : DevExpress.XtraBars.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
public void Hide()
Public Sub Hide
If a panel is docked to the form or floated, the Hide method hides the panel by setting its DockPanel.Visibility property to DockVisibility.Hidden. The hidden panel is removed from the screen and an end-user will not be able to access it until the panel is made visible.
Use the DockPanel.Show or DockPanel.ShowSliding methods to display a hidden panel. Alternatively, you can set the DockPanel.Visibility property to DockVisibility.Visible. To access all the hidden panels, use the DockManager.HiddenPanels collection.
If a panel is in auto-hide mode, the Hide method does nothing. To minimize an auto-hidden panel use the DockPanel.HideSliding method.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Hide() method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
winforms-richedit-document-api/CS/RichEditAPISample/Form1.cs#L494
this.richEditControl.Options.Comments.Visibility = RichEditCommentVisibility.Hidden;
this.displayResultControl1.DockPanel.Hide();
}
winforms-richedit-document-api/VB/RichEditAPISample/Form1.vb#L476
richEditControl.Options.Comments.Visibility = RichEditCommentVisibility.Hidden
displayResultControl1.DockPanel.Hide()
End If
See Also