CompartmentShape Class

Base class of compartment shapes that you define in DSL Definition.

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

Syntax

'Declaration
<DescriptionResourceAttribute("Microsoft.VisualStudio.Modeling.Diagrams.CompartmentShape.Description",  _
    GetType(CoreDesignSurfaceDomainModel), "Microsoft.VisualStudio.Modeling.Diagrams.GeneratedCode.DomainModelResx")> _
<DisplayNameResourceAttribute("Microsoft.VisualStudio.Modeling.Diagrams.CompartmentShape.DisplayName",  _
    GetType(CoreDesignSurfaceDomainModel), "Microsoft.VisualStudio.Modeling.Diagrams.GeneratedCode.DomainModelResx")> _
<DomainObjectIdAttribute("b94600fb-5b80-491e-9e7b-182ac8cbba1c")> _
<CLSCompliantAttribute(True)> _
Public MustInherit Class CompartmentShape _
    Inherits NodeShape
'Usage
Dim instance As CompartmentShape
[DescriptionResourceAttribute("Microsoft.VisualStudio.Modeling.Diagrams.CompartmentShape.Description", 
    typeof(CoreDesignSurfaceDomainModel), "Microsoft.VisualStudio.Modeling.Diagrams.GeneratedCode.DomainModelResx")]
[DisplayNameResourceAttribute("Microsoft.VisualStudio.Modeling.Diagrams.CompartmentShape.DisplayName", 
    typeof(CoreDesignSurfaceDomainModel), "Microsoft.VisualStudio.Modeling.Diagrams.GeneratedCode.DomainModelResx")]
[DomainObjectIdAttribute("b94600fb-5b80-491e-9e7b-182ac8cbba1c")]
[CLSCompliantAttribute(true)]
public abstract class CompartmentShape : NodeShape
[DescriptionResourceAttribute(L"Microsoft.VisualStudio.Modeling.Diagrams.CompartmentShape.Description", 
    typeof(CoreDesignSurfaceDomainModel), L"Microsoft.VisualStudio.Modeling.Diagrams.GeneratedCode.DomainModelResx")]
[DisplayNameResourceAttribute(L"Microsoft.VisualStudio.Modeling.Diagrams.CompartmentShape.DisplayName", 
    typeof(CoreDesignSurfaceDomainModel), L"Microsoft.VisualStudio.Modeling.Diagrams.GeneratedCode.DomainModelResx")]
[DomainObjectIdAttribute(L"b94600fb-5b80-491e-9e7b-182ac8cbba1c")]
[CLSCompliantAttribute(true)]
public ref class CompartmentShape abstract : public NodeShape
public abstract class CompartmentShape extends NodeShape

Remarks

For information about how to work with compartments in the compartment shape, see Compartment.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Modeling.ModelElement
    Microsoft.VisualStudio.Modeling.Diagrams.PresentationElement
      Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement
        Microsoft.VisualStudio.Modeling.Diagrams.NodeShape
          Microsoft.VisualStudio.Modeling.Diagrams.CompartmentShape

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

CompartmentShape Members

Microsoft.VisualStudio.Modeling.Diagrams Namespace

Change History

Date

History

Reason

Clarified member descriptions.

Information enhancement.