Export (0) Print
Expand All

DiagramItem Class

Represents a ShapeElement, a ShapeField, or a ShapeSubField. This is intended to be used for hit-testing, selection, focus, and accessibility.

Object
  Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem

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

public class DiagramItem : ICloneable

The DiagramItem type exposes the following members.

  NameDescription
Public methodDiagramItem()Initializes a new instance of the DiagramItem class.
Public methodDiagramItem(ShapeElement)Initializes a new instance of the DiagramItem class to represent the specified ShapeElement.
Public methodDiagramItem(LinkShape, LineSegment)Initializes a new instance of the DiagramItem class to represent the specified LineSegment.
Public methodDiagramItem(ShapeElement, ShapeField)Initializes a new instance of the DiagramItem class to represent the specified ShapeField.
Public methodDiagramItem(LinkShape, LineSegment, AnchorPoint)Initializes a new instance of the DiagramItem class to represent the specified AnchorPoint.
Public methodDiagramItem(ShapeElement, ShapeField, ShapeSubField)Initializes a new instance of the DiagramItem class to represent the specified ShapeSubField.
Public methodDiagramItem(ShapeElement, ShapeField, ShapeSubField, LineSegment, AnchorPoint)Initializes a new instance of the DiagramItem class to represent the specified ShapeSubField.
Top

  NameDescription
Public propertyAbsoluteBoundingBoxGets the bounding box in world units relative to the top-left of the diagram.
Public propertyAnchorPointGets the anchorPoint.
Public propertyCanFocusGets a value indicating whether this DiagramItem is focusable.
Public propertyCanSelectGets a value indicating whether this DiagramItem is selectable.
Public propertyDiagramGets the Diagram that the shape belongs to.
Public propertyFieldGets the field.
Public propertyIsDiagramGets a value indicating whether the DiagramItem is the diagram.
Public propertyParentGets the parent DiagramItem.
Public propertyRepresentedElementsGets a collection of ModelElements that this DiagramItem represents.
Public propertySegmentGets the segment.
Public propertyShapeGets the shape.
Public propertySubFieldGets the subfield.
Top

  NameDescription
Public methodCloneCreates a new DiagramItem that is a copy of the current instance.
Public methodEqualsGets a value indicating whether two DiagramItem objects are equal. (Overrides Object.Equals(Object).)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetAccessibleObjectGets the AccessibleObject for a DiagramItem.
Public methodGetHashCodeGets a hash code for this DiagramItem. (Overrides Object.GetHashCode.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodSetItem(ShapeElement)Sets the DiagramItem to represent the specified ShapeElement.
Public methodSetItem(LinkShape, LineSegment)Set the DiagramItem to represent the specified LineSegment
Public methodSetItem(ShapeElement, ShapeField)Sets the DiagramItem to represent the specified ShapeField.
Public methodSetItem(LinkShape, LineSegment, AnchorPoint)Set the DiagramItem to represent the specified LineSegment's anchor point
Public methodSetItem(ShapeElement, ShapeField, ShapeSubField)Sets the DiagramItem to represent the specified ShapeSubField.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

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