[]
        
(Showing Draft Content)

GrapeCity.Spreadsheet.UI.UIManager.Execute

Execute Method

Execute(object, object)

Execute an UI command.

Declaration
protected virtual void Execute(object sender, object data)
Protected Overridable Sub Execute(sender As Object, data As Object)
Parameters
Type Name Description
object sender

The sender that raise the command.

object data

The contextual data.

Execute<T>(Func<IWorkbook, object, T>, IWorkbook, object)

Execute an action and notify the change after action is invoked.

Declaration
public T Execute<T>(Func<IWorkbook, object, T> action, IWorkbook workbook, object param)
Public Function Execute(Of T)(action As Func(Of IWorkbook, Object, T), workbook As IWorkbook, param As Object) As T
Parameters
Type Name Description
Func<IWorkbook, object, T> action

The action will be invoked.

IWorkbook workbook

The workbook, which is first parameter of action.

object param

The second parameter to invoke action.

Returns
Type Description
T

Return the result after action is executed.

Type Parameters
Name Description
T