Share via


CompartmentShape.EnsureCompartments Method

Creates the compartments for the compartment shape.

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

Syntax

'Declaration
Public Overridable Sub EnsureCompartments
'Usage
Dim instance As CompartmentShape

instance.EnsureCompartments()
public virtual void EnsureCompartments()
public:
virtual void EnsureCompartments()
public function EnsureCompartments()

Remarks

This method uses GetCompartmentDescriptions and GetCompartmentMappings to initialize each compartment.

.NET Framework Security

See Also

Reference

CompartmentShape Class

CompartmentShape Members

Microsoft.VisualStudio.Modeling.Diagrams Namespace