NodeShape Class
Represents a shape on a diagram, such as a rectangle, icon or other shape with an area (not a connector).
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.dll)
Syntax
'Declaration
<DomainObjectIdAttribute("d2cd161b-6baa-4ed6-bd22-478b365502dc")> _
<DisplayNameResourceAttribute("Microsoft.VisualStudio.Modeling.Diagrams.NodeShape.DisplayName", _
GetType(CoreDesignSurfaceDomainModel), "Microsoft.VisualStudio.Modeling.Diagrams.GeneratedCode.DomainModelResx")> _
<DescriptionResourceAttribute("Microsoft.VisualStudio.Modeling.Diagrams.NodeShape.Description", _
GetType(CoreDesignSurfaceDomainModel), "Microsoft.VisualStudio.Modeling.Diagrams.GeneratedCode.DomainModelResx")> _
<CLSCompliantAttribute(True)> _
Public MustInherit Class NodeShape _
Inherits ShapeElement _
Implements INodeGeometryData
'Usage
Dim instance As NodeShape
[DomainObjectIdAttribute("d2cd161b-6baa-4ed6-bd22-478b365502dc")]
[DisplayNameResourceAttribute("Microsoft.VisualStudio.Modeling.Diagrams.NodeShape.DisplayName",
typeof(CoreDesignSurfaceDomainModel), "Microsoft.VisualStudio.Modeling.Diagrams.GeneratedCode.DomainModelResx")]
[DescriptionResourceAttribute("Microsoft.VisualStudio.Modeling.Diagrams.NodeShape.Description",
typeof(CoreDesignSurfaceDomainModel), "Microsoft.VisualStudio.Modeling.Diagrams.GeneratedCode.DomainModelResx")]
[CLSCompliantAttribute(true)]
public abstract class NodeShape : ShapeElement,
INodeGeometryData
[DomainObjectIdAttribute(L"d2cd161b-6baa-4ed6-bd22-478b365502dc")]
[DisplayNameResourceAttribute(L"Microsoft.VisualStudio.Modeling.Diagrams.NodeShape.DisplayName",
typeof(CoreDesignSurfaceDomainModel), L"Microsoft.VisualStudio.Modeling.Diagrams.GeneratedCode.DomainModelResx")]
[DescriptionResourceAttribute(L"Microsoft.VisualStudio.Modeling.Diagrams.NodeShape.Description",
typeof(CoreDesignSurfaceDomainModel), L"Microsoft.VisualStudio.Modeling.Diagrams.GeneratedCode.DomainModelResx")]
[CLSCompliantAttribute(true)]
public ref class NodeShape abstract : public ShapeElement,
INodeGeometryData
public abstract class NodeShape extends ShapeElement implements INodeGeometryData
Remarks
NodeShape is the base class from which all other non-connector shapes derive. When you define a shape class in DSL Definition, its default base class is NodeShape, unless you explicitly set another shape class as the base.
A NodeShape is usually the graphical representation of an instance of a domain class. The domain class represents conceptual information, and the shape represents its visible appearance on the diagram. In the DSL Definition, you define a Diagram Element Map between the shape class and the domain class. At run time, you can access the domain class instance by using the property ModelElement.
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.Compartment
Microsoft.VisualStudio.Modeling.Diagrams.CompartmentShape
Microsoft.VisualStudio.Modeling.Diagrams.DecoratorHostShapeBase
Microsoft.VisualStudio.Modeling.Diagrams.Diagram
Microsoft.VisualStudio.Modeling.Diagrams.ImageShape
Microsoft.VisualStudio.Modeling.Diagrams.LabelShape
Microsoft.VisualStudio.Modeling.Diagrams.Port
Microsoft.VisualStudio.Modeling.Diagrams.PortShape
Microsoft.VisualStudio.Modeling.Diagrams.SwimlaneShape
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
Microsoft.VisualStudio.Modeling.Diagrams Namespace
Other Resources
How to: Access a Presentation Element from a Model Element
Change History
Date |
History |
Reason |
---|---|---|
Added and clarified descriptions. |
Customer feedback. |