The TaskPane object represents the current task pane associated with the open window within an InfoPath form. The object provides properties for working with the built-in task pane, as shown in Table A.4.
Name | Security Level | Description |
---|---|---|
Type Property | 1 | Returns a value of the XDTaskPane enumeration |
Visible Property | 1 | Returns a Boolean indicating that the current task pane is visible |
The task pane is the base object that the HTML Task Pane is inherited from. The available properties and methods are determined based on the type of task pane. The Type property is based on the XDTaskPane enumeration, and these values may also be used as arguments to the item property of the TaskPanes collection for returning a reference to the specific task pane type. The XDTaskPane enumeration contains the values shown in Table A.5.
Name | Value | Note |
---|---|---|
xdTaskPaneHTML |
| InfoPath custom task pane |
xdTaskPaneFillOutAForm | 1 | Fill Out a Form task pane used to open a form in fill-in mode |
xdTaskPaneDesignerNew | 2 | Design a Form task pane used for form design |
xdTaskPaneSearchResults | 3 | Search Results task pane |
xdTaskPaneHelp | 4 | Help task pane |
xdTaskPaneClipArt | 5 | Clip Art task pane |
xdTaskPaneFind | 6 | Find task pane |
xdTaskPaneReplace | 7 | Replace task pane |
xdTaskPaneFormatting | 8 | Font task pane |
xdTaskPaneBulletsNumbering | 9 | Bullet and Numbering task pane |
xdTaskPaneSpelling | 10 | Spelling task pane |
The following example shows how to enable the Task Pane collection and make the Spelling Task Pane active and visible:
objTaskPane = XDocument.View.Window.TaskPanes.Item(10); objTaskPane.Visible = true;