Edit

Share via


TaskPane.Visible Property

Definition

Gets or sets a value indicating that the task pane represented by the TaskPaneObject object is visible in the Microsoft Office InfoPath 2003 user interface.

public:
 property bool Visible { bool get(); void set(bool value); };
public bool Visible { get; set; }
member this.Visible : bool with get, set
Public Property Visible As Boolean

Property Value

Examples

In the following example, the TaskPanes collection is used to set a reference to the HTMLTaskPane object that represents the custom task pane. Then the Visible property of the HTMLTaskPane object is used to make the custom task pane appear in the InfoPath user interface

TaskPane objTaskPane = thisXDocument.View.Window.TaskPanes[0];
objTaskPane.<span class="label">Visible</span> = true;

Remarks

Setting the Visible property to True causes the task pane to appear in the user interface, and setting it to False causes it to be removed from the user interface.

Applies to