Show All

# Visible Property (TaskPane Object)

Sets or retrieves a Boolean value indicating that the task pane represented by the TaskPane object is visible in the Microsoft Office InfoPath 2003 user interface.

expression.Visible

expression Required. An expression that returns a reference to the TaskPane object.

## Security Level

2: Can be accessed only by forms running in the same domain as the currently open form, or by forms that have been granted cross-domain permissions.

## 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.

## 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 TaskPanes object is used to make the Help task pane appear in the InfoPath user interface.

    var objTaskPane;

    objTaskPane = XDocument.View.Window.TaskPanes(4);
    objTaskPane.Visible = true;

©2003-2004 Microsoft Corporation. All rights reserved. Permission to copy, display and distribute this document is available at: http://msdn.microsoft.com/library/en-us/odcXMLRef/html/odcXMLRefLegalNotice.asp