Share via


ShapeElement.IsVisible Property

If true, the shape appears on the diagram; if false, it does not appear, and layout and routing algorithms ignore it. See also Hide() and Show().

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.dll)

Syntax

'Declaration
Public ReadOnly Property IsVisible As Boolean
'Usage
Dim instance As ShapeElement 
Dim value As Boolean 

value = instance.IsVisible
public bool IsVisible { get; }
public:
property bool IsVisible {
    bool get ();
}
public function get IsVisible () : boolean

Property Value

Type: System.Boolean

Remarks

If the shape is not visible, layout and routing ignore it.

To affect visibility, use Hide() and Show(). For NodeShapes, you can change the visibility of contained shapes by using Collapseand Expand.

.NET Framework Security

See Also

Reference

ShapeElement Class

ShapeElement Members

Microsoft.VisualStudio.Modeling.Diagrams Namespace

Hide()

Show()

Collapse()

Expand()