Share via


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.String

    The CLSID or ProgID of a Microsoft ActiveX® object.

  • CTPParentWindow
    Type: System.Object

    The 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

See Also

Reference

ICTPFactory Interface

ICTPFactory Members

Microsoft.Office.Core Namespace