| ISwAddInExCreateTaskPaneTControl, TCmdEnum Method (ActionTCmdEnum, TControl) |
Creates task pane control
Namespace:
CodeStack.SwEx.AddIn.Base
Assembly:
CodeStack.SwEx.AddIn (in CodeStack.SwEx.AddIn.dll) Version: 0.8.1.0 (0.8.1.0)
Syntax ITaskpaneView CreateTaskPane<TControl, TCmdEnum>(
Action<TCmdEnum> cmdHandler,
out TControl ctrl
)
where TControl : new(), UserControl
where TCmdEnum : IComparable, IFormattable, IConvertible
Function CreateTaskPane(Of TControl As {New, UserControl}, TCmdEnum As {IComparable, IFormattable, IConvertible}) (
cmdHandler As Action(Of TCmdEnum),
<OutAttribute> ByRef ctrl As TControl
) As ITaskpaneView
generic<typename TControl, typename TCmdEnum>
where TControl : gcnew(), UserControl
where TCmdEnum : IComparable, IFormattable, IConvertible
ITaskpaneView^ CreateTaskPane(
Action<TCmdEnum>^ cmdHandler,
[OutAttribute] TControl% ctrl
)
Parameters
- cmdHandler
- Type: SystemActionTCmdEnum
Handler of the commands - ctrl
- Type: TControl
Instance of created control
Type Parameters
- TControl
- Control type to host in task pane
- TCmdEnum
- Descriptor for commands in task pane. Use TaskPaneStandardButtonAttribute to mark standard commands
Return Value
Type:
ITaskpaneViewTask pane view
See Also