Edit

Share via


TaskPane Class

Definition

Represents the task pane that is associated with the current window in Microsoft InfoPath.

public ref class TaskPane abstract
public abstract class TaskPane
type TaskPane = class
Public MustInherit Class TaskPane
Inheritance
TaskPane
Derived

Examples

The following example sets a reference to the TaskPane object in the TaskPaneCollection with the index value of 3, displays its TaskPaneType value (ClipArt), and then displays the Clip Art task pane.

TaskPane myTaskPane = this.TaskPanes[3];
MessageBox.Show(myTaskPane.TaskPaneType.ToString());
myTaskPane.Visible = true;
Dim myTaskPane As TaskPane  = Me.TaskPanes(3)
MessageBox.Show(myTaskPane.TaskPaneType.ToString())
myTaskPane.Visible = true

Remarks

The TaskPane class provides properties for working with the InfoPath built-in task panes. The HtmlTaskPane class inherits these properties for working with a custom task pane.

The properties available for an InfoPath task pane are determined by the type of task pane that you are working with. If the TaskPaneType property returns TaskPaneType.Html, the task pane is a custom task pane and the properties and methods available are provided by the HtmlTaskPane class. If the TaskPaneType property returns any other value, the task pane is a built-in task pane and the properties are provided by the TaskPane object.

Note: TaskPaneType property returns values defined by the TaskPaneType enumeration. These enumerated values are also used as arguments to the Item[TaskPaneType] property of the TaskPaneCollection class for returning a reference to a specified type of task pane.

Constructors

TaskPane()

Properties

TaskPaneType

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

Visible

Gets or sets whether the task pane represented by the TaskPane object is visible in the Microsoft InfoPath user interface.

Applies to