A read-only property that returns a value indicating the type of task pane represented by the TaskPane object.
expression.Type
expression Required. An expression that returns a reference to the TaskPane object. Based on the XdTaskPaneType enumeration.
Security Level
0: Can be accessed without restrictions.
Remarks
If the Type property of the TaskPane object returns 0, the task pane is a custom task pane. If the Type property returns any other value, the task pane is a built-in task pane.
Note The Type property is based on the XdTaskPaneType enumeration. These enumerated values are also used as arguments to the Item property of the TaskPanes collection for returning a reference to a specified type of task pane.
Example
In the following example, the Item property of the TaskPanes collection is used to set a reference to the TaskPane object that represents the built-in Help task pane. Then the Visible property of the TaskPane object is used to make the Help task pane appear in the Microsoft Office InfoPath 2003 user interface.
var objTaskPane;
objTaskPane = XDocument.View.Window.TaskPanes.Item(4);
objTaskPane.Visible = true;