Back to Devexpress

DockPanel.Hide() Method

windowsforms-devexpress-dot-xtrabars-dot-docking-dot-dockpanel-7109802f.md

latest3.8 KB
Original Source

DockPanel.Hide() Method

Hides the panel.

Namespace : DevExpress.XtraBars.Docking

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public void Hide()
vb
Public Sub Hide

Remarks

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

csharp
this.richEditControl.Options.Comments.Visibility = RichEditCommentVisibility.Hidden;
    this.displayResultControl1.DockPanel.Hide();
}

winforms-richedit-document-api/VB/RichEditAPISample/Form1.vb#L476

vb
richEditControl.Options.Comments.Visibility = RichEditCommentVisibility.Hidden
    displayResultControl1.DockPanel.Hide()
End If

See Also

HideImmediately()

HideSliding()

Show()

Visibility

ActivePanel

HiddenPanels

HidePanelsImmediately

DockPanel Class

DockPanel Members

DevExpress.XtraBars.Docking Namespace