DiagramItem Class
Visual Studio 2012
Represents a ShapeElement, a ShapeField, or a ShapeSubField. This is intended to be used for hit-testing, selection, focus, and accessibility.
Namespace:
Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll)
The DiagramItem type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | DiagramItem() | Initializes a new instance of the DiagramItem class. |
![]() | DiagramItem(ShapeElement) | Initializes a new instance of the DiagramItem class to represent the specified ShapeElement. |
![]() | DiagramItem(LinkShape, LineSegment) | Initializes a new instance of the DiagramItem class to represent the specified LineSegment. |
![]() | DiagramItem(ShapeElement, ShapeField) | Initializes a new instance of the DiagramItem class to represent the specified ShapeField. |
![]() | DiagramItem(LinkShape, LineSegment, AnchorPoint) | Initializes a new instance of the DiagramItem class to represent the specified AnchorPoint. |
![]() | DiagramItem(ShapeElement, ShapeField, ShapeSubField) | Initializes a new instance of the DiagramItem class to represent the specified ShapeSubField. |
![]() | DiagramItem(ShapeElement, ShapeField, ShapeSubField, LineSegment, AnchorPoint) | Initializes a new instance of the DiagramItem class to represent the specified ShapeSubField. |
| Name | Description | |
|---|---|---|
![]() | AbsoluteBoundingBox | Gets the bounding box in world units relative to the top-left of the diagram. |
![]() | AnchorPoint | Gets the anchorPoint. |
![]() | CanFocus | Gets a value indicating whether this DiagramItem is focusable. |
![]() | CanSelect | Gets a value indicating whether this DiagramItem is selectable. |
![]() | Diagram | Gets the Diagram that the shape belongs to. |
![]() | Field | Gets the field. |
![]() | IsDiagram | Gets a value indicating whether the DiagramItem is the diagram. |
![]() | Parent | Gets the parent DiagramItem. |
![]() | RepresentedElements | Gets a collection of ModelElements that this DiagramItem represents. |
![]() | Segment | Gets the segment. |
![]() | Shape | Gets the shape. |
![]() | SubField | Gets the subfield. |
| Name | Description | |
|---|---|---|
![]() | Clone | Creates a new DiagramItem that is a copy of the current instance. |
![]() | Equals | Gets a value indicating whether two DiagramItem objects are equal. (Overrides Object.Equals(Object).) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetAccessibleObject | Gets the AccessibleObject for a DiagramItem. |
![]() | GetHashCode | Gets a hash code for this DiagramItem. (Overrides Object.GetHashCode.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | SetItem(ShapeElement) | Sets the DiagramItem to represent the specified ShapeElement. |
![]() | SetItem(LinkShape, LineSegment) | Set the DiagramItem to represent the specified LineSegment |
![]() | SetItem(ShapeElement, ShapeField) | Sets the DiagramItem to represent the specified ShapeField. |
![]() | SetItem(LinkShape, LineSegment, AnchorPoint) | Set the DiagramItem to represent the specified LineSegment's anchor point |
![]() | SetItem(ShapeElement, ShapeField, ShapeSubField) | Sets the DiagramItem to represent the specified ShapeSubField. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
