Udostępnij za pośrednictwem


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 To All elements
Media visual
Inherited no
Initial Value inherit

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

Minimum supported server

Windows Server 2003

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll