[]
Execute an UI command.
protected virtual void Execute(object sender, object data)
Protected Overridable Sub Execute(sender As Object, data As Object)
| Type | Name | Description |
|---|---|---|
| object | sender | The sender that raise the command. |
| object | data | The contextual data. |
Execute an action and notify the change after action is invoked.
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
| 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. |
| Type | Description |
|---|---|
| T | Return the result after action is executed. |
| Name | Description |
|---|---|
| T |