Click or drag to resize

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

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: ITaskpaneView
Task pane view
See Also