ICTPFactory.CreateCTP Method
Creates an instance of a custom task pane.
Namespace: Microsoft.Office.Core
Assembly: office (in office.dll)
Syntax
'Declaration
Function CreateCTP ( _
CTPAxID As String, _
CTPTitle As String, _
CTPParentWindow As Object _
) As CustomTaskPane
'Usage
Dim instance As ICTPFactory
Dim CTPAxID As String
Dim CTPTitle As String
Dim CTPParentWindow As Object
Dim returnValue As CustomTaskPane
returnValue = instance.CreateCTP(CTPAxID, _
CTPTitle, CTPParentWindow)
CustomTaskPane CreateCTP(
string CTPAxID,
string CTPTitle,
Object CTPParentWindow
)
Parameters
CTPAxID
Type: System.StringThe CLSID or ProgID of a Microsoft ActiveX® object.
CTPTitle
Type: System.StringThe title for the task pane.
CTPParentWindow
Type: System.ObjectThe window that hosts the task pane. If not present, the parent of the task pane is the ActiveWindow property of the host application.
Return Value
Type: Microsoft.Office.Core.CustomTaskPane
CustomTaskPane