visibility Property

Sets or returns a String that represents whether or not the contents of an element is visible.

expression.visibility

*expression   * Required. An expression that returns one of the objects in the Applies To list.

Remarks

The visibility property can be one of the following String values.

Value Description
inherit Inherits the visibility of the nearest parent element.
visible Text in the element is visible.
hidden Text in the element is hidden.

Example

The following example hides the first table in the active document so that it doesn't render when the page is displayed in the browser.

Dim objTable As FPHTMLTable

Set objTable = ActiveDocument.all.tags("table").Item(0)

objTable.Style.visibility = "hidden"

Applies to | FPHTMLStyle Object | IFPStyleState Object | IHTMLRuleStyle Object | IHTMLStyle Object