Partager via


Compartment.Collapse Method

Collapses the compartment shape so that only the compartment header appears.

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

Syntax

'Declaration
Protected Overrides Sub Collapse
protected override void Collapse()
protected:
virtual void Collapse() override
abstract Collapse : unit -> unit  
override Collapse : unit -> unit
protected override function Collapse()

Remarks

This method can be called only in a transaction.

.NET Framework Security

See Also

Reference

Compartment Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace