This topic has not yet been rated - Rate this topic

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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
public bool IsVisible { get; }

Property Value

Type: System.Boolean

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 Collapse()and Expand().

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ