Skip to main content

XRDesignBarManager.SetCommandVisibility(CommandID, BarItemVisibility) Method

OBSOLETE

The SetCommandVisibility method is obsolete now. Use the SetCommandVisibility method instead.

Changes the visibility of any bar item which executes the specified command.

Namespace: DevExpress.XtraReports.UserDesigner

Assembly: DevExpress.XtraReports.v24.1.Extensions.dll

NuGet Package: DevExpress.Win.Reporting

Declaration

[Obsolete("The SetCommandVisibility method is obsolete now. Use the XRDesignMdiController.SetCommandVisibility method instead.")]
public void SetCommandVisibility(
    CommandID commandID,
    BarItemVisibility visibility
)

Parameters

Name Type Description
commandID CommandID

A CommandID object specifying the command whose visibility needs to be changed.

visibility BarItemVisibility

One of the BarItemVisibility enumeration’s values that specifies the new visibility state.

Remarks

The SetCommandVisibility method is obsolete now. Use the XRDesignPanel.SetCommandVisibility method instead.

See Also