LabelShape Class

Represents a label shape in the Domain-Specific Language Designer.

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.LabelShape.Description",  _
    GetType(CoreDesignSurfaceDomainModel), "Microsoft.VisualStudio.Modeling.Diagrams.GeneratedCode.DomainModelResx")> _
<CLSCompliantAttribute(True)> _
<DomainObjectIdAttribute("fe127363-c4a4-4c8f-8e98-e88f07f549e1")> _
<DisplayNameResourceAttribute("Microsoft.VisualStudio.Modeling.Diagrams.LabelShape.DisplayName",  _
    GetType(CoreDesignSurfaceDomainModel), "Microsoft.VisualStudio.Modeling.Diagrams.GeneratedCode.DomainModelResx")> _
Public Class LabelShape _
    Inherits NodeShape
'Usage
Dim instance As LabelShape
[DescriptionResourceAttribute("Microsoft.VisualStudio.Modeling.Diagrams.LabelShape.Description", 
    typeof(CoreDesignSurfaceDomainModel), "Microsoft.VisualStudio.Modeling.Diagrams.GeneratedCode.DomainModelResx")]
[CLSCompliantAttribute(true)]
[DomainObjectIdAttribute("fe127363-c4a4-4c8f-8e98-e88f07f549e1")]
[DisplayNameResourceAttribute("Microsoft.VisualStudio.Modeling.Diagrams.LabelShape.DisplayName", 
    typeof(CoreDesignSurfaceDomainModel), "Microsoft.VisualStudio.Modeling.Diagrams.GeneratedCode.DomainModelResx")]
public class LabelShape : NodeShape
[DescriptionResourceAttribute(L"Microsoft.VisualStudio.Modeling.Diagrams.LabelShape.Description", 
    typeof(CoreDesignSurfaceDomainModel), L"Microsoft.VisualStudio.Modeling.Diagrams.GeneratedCode.DomainModelResx")]
[CLSCompliantAttribute(true)]
[DomainObjectIdAttribute(L"fe127363-c4a4-4c8f-8e98-e88f07f549e1")]
[DisplayNameResourceAttribute(L"Microsoft.VisualStudio.Modeling.Diagrams.LabelShape.DisplayName", 
    typeof(CoreDesignSurfaceDomainModel), L"Microsoft.VisualStudio.Modeling.Diagrams.GeneratedCode.DomainModelResx")]
public ref class LabelShape : public NodeShape
public class LabelShape extends NodeShape

Remarks

You can use label shapes to display labels in other shapes in the diagram.

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.LabelShape
            Microsoft.VisualStudio.Modeling.Diagrams.CommentShape
            Microsoft.VisualStudio.Modeling.Diagrams.LineLabelShape

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

LabelShape Members

Microsoft.VisualStudio.Modeling.Diagrams Namespace