Share via


HTMLTaskPane.TaskPaneType property

Gets a value indicating the type of task pane represented by the HTMLTaskPaneObject object, which is always a custom task pane.

Namespace:  Microsoft.Office.Interop.InfoPath
Assembly:  Microsoft.Office.Interop.InfoPath (in Microsoft.Office.Interop.InfoPath.dll)

Syntax

'Declaration
ReadOnly Property TaskPaneType As XdTaskPaneType
    Get
'Usage
Dim instance As HTMLTaskPane
Dim value As XdTaskPaneType

value = instance.TaskPaneType
XdTaskPaneType TaskPaneType { get; }

Property value

Type: Microsoft.Office.Interop.InfoPath.XdTaskPaneType

Implements

TaskPane.TaskPaneType

Remarks

The TaskPaneType property of the HTMLTaskPane object is one of the properties inherited from the TaskPaneObject object when the type of the task pane is 0, which means that it is the custom task pane.

Note

The TaskPaneType property is based on the XdTaskPaneType enumeration. These enumerated values are also used as arguments to the Item property of the TaskPanesCollection collection for returning a reference to a specified type of task pane.

Examples

In the following example, the TaskPanes collection is used to get a reference to the HTMLTaskPane object that represents the custom task pane.

TaskPane objTaskPane = thisXDocument.View.Window.TaskPanes[0];
XdTaskPaneType ttype= objTaskPane.TaskPaneType;

See also

Reference

HTMLTaskPane interface

HTMLTaskPane members

TaskPaneType overload

Microsoft.Office.Interop.InfoPath namespace