Export (0) Print
Expand All
top
Expand Minimize
This topic has not yet been rated - Rate this topic

visibility property

Sets or retrieves whether the content of the object is displayed.

Syntax

Integer value = object.put_visibility( v);Integer value = object.get_visibility(* sVisibility);

Property values

Type: BSTR

inherit (inherit)

Default. Object inherits the visibility of the next parent object.

visible (visible)

Object is visible.

hidden (hidden)

Object is hidden.

collapse (collapse)

Internet Explorer 8. Used in tables to remove tr and col; for all other elements, same as hidden.

String format

visible | hidden | collapse | inherit

CSS information

Applies ToAll elements
Mediavisual
Inheritedno
Initial Value

Remarks

Objects that are not visible still reserve the same physical space in the content layout as they would if they were visible. For document style scripting information, see Introduction to Dynamic Styles.

As of Microsoft Internet Explorer 5, a child object can be visible when its parent is hidden. With Microsoft Internet Explorer 4.0, the parent object must be visible for a child object to be visible.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.