Visibility Attribute | Internet Development Index |
Determines whether a shape is displayed. Read/write String.
Applies To
Tag Syntax
<v:element style="visibility:expression">
Script Syntax
element.style.visibility="expression"
expression=element.style.visibility
Remarks
The Visibility attribute is similar to the standard HTML Visibility attribute for styles.
Values include:
Value | Description |
visible | The shape is visible. |
hidden | The shape is not visible, but is still part of the flow of the objects in the browser. Mouse events are not processed. |
inherit | Default. The visibility state is inherited from the parent of the shape. Microsoft Office applications only use inherit and hidden; any other values are mapped to inherit. |
collapse | Used for graphical editing applications that can collapse groups of shapes; for example, outliners. |
VML Standard Attribute
Example
The following code creates a shape but makes it hidden. Other objects in the document will flow around it, leaving a space the same size as the shape.
<v:rect id=myrect fillcolor="red" style="position:relative;top:1;left:1;width:20;height:20;visibility:hidden"> </v:rect>
Visibility Attribute Example. (Requires Microsoft Internet Explorer 5 or greater.)