Show All

# Visible Property (HTMLTaskPane Object)

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

expression.Visible

expression Required. An expression that returns a reference to the HTMLTaskPane 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

The Visible property of the HTMLTaskPane object is one of the properties inherited from the TaskPane object when the type of the task pane is 0, which means that it is the custom task pane.

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

    var objTaskPane;

    objTaskPane = XDocument.View.Window.TaskPanes(0);
    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