Back to Devexpress

IBaseViewController.Execute(BaseViewControllerCommand, Object) Method

windowsforms-devexpress-dot-xtrabars-dot-docking2010-dot-views-dot-ibaseviewcontroller-dot-execute-x28-devexpress-dot-xtrabars-dot-docking2010-dot-views-dot-baseviewcontrollercommand-system-dot-object-x29.md

latest2.5 KB
Original Source

IBaseViewController.Execute(BaseViewControllerCommand, Object) Method

Performs a simple operation within the current View.

Namespace : DevExpress.XtraBars.Docking2010.Views

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
bool Execute(
    BaseViewControllerCommand command,
    object parameter
)
vb
Function Execute(
    command As BaseViewControllerCommand,
    parameter As Object
) As Boolean

Parameters

NameTypeDescription
commandDevExpress.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

TypeDescription
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

IBaseViewController Interface

IBaseViewController Members

DevExpress.XtraBars.Docking2010.Views Namespace