Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

IBaseViewController.Execute(BaseViewControllerCommand, Object) Method

Performs a simple operation within the current View.

Namespace: DevExpress.XtraBars.Docking2010.Views

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

bool Execute(
    BaseViewControllerCommand command,
    object parameter
)

#Parameters

Name Type Description
command DevExpress.XtraBars.Docking2010.Views.BaseViewControllerCommand

A BaseViewControllerCommand object that is the command to be performed.

parameter Object

An object that is the command‘s target.

#Returns

Type Description
Boolean

true if the command was successfully performed; otherwise, false.

#Remarks

The Execute method allows you to perform a standard command within a View, such as:

  • Activate - activates a target object;
  • Close - closes the current target;
  • CloseAllButThis - closes all documents except for the target;
  • CloseAll - closes all documents within the View;
  • Dock - docks the target Document or Panel;
  • Float - makes the target Document or Panel floating;
  • ResetLayout - resets the target‘s layout;
  • ShowWindowsDialog - displays the Windows Dialog (see the IBaseViewController.ShowWindowsDialog method).
See Also