TaskPaneType property
Collapse the table of content
Expand the table of content

TaskPane.TaskPaneType property

Office 2013 and later

Gets a value indicating the type of task pane represented by the TaskPaneObject object.

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

XdTaskPaneType TaskPaneType { get; }

If the TaskPaneType property returns 0, the task pane is a custom task pane. If the TaskPaneType property returns any other value, the task pane is a built-in task pane.


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

Important noteImportant

This member can be accessed without restrictions.

In the following example, the TaskPanes collection is used to get a reference to the TaskPane object that represents the built-in Help task pane.

TaskPane objTaskPane = thisXDocument.View.Window.TaskPanes[4];
XdTaskPaneType ttype= objTaskPane.TaskPaneType;
© 2015 Microsoft