BaseLayoutItem.HideToCustomization() Method

Hides the item to the Customization Form.

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v21.1.dll

Declaration

public virtual void HideToCustomization()

Remarks

The HideToCustomization and BaseLayoutItem.RestoreFromCustomization methods hide or restore the layout item to or from the Customization Form.

NOTE

When layout items are hidden to the Customization Form, they do not retain their positions in the layout. To preserve the position, use Visibility instead.

Example

The code below handles the LayoutGroup.CustomButtonClick event to hide the layout group with a click on a button in its header. To add buttons to the header, use the CustomHeaderButtons collection.

private void layoutControlGroup1_CustomButtonClick(object sender, DevExpress.XtraBars.Docking2010.BaseButtonEventArgs e) {
    LayoutControlGroup layoutGroup = sender as LayoutControlGroup;
    if (e.Button.Properties.Caption == "Hide")
        layoutGroup.HideToCustomization();
}
See Also