DiagramItem Class

 

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.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)

System::Object
  Microsoft.VisualStudio.Modeling.Diagrams::DiagramItem

public ref class DiagramItem : ICloneable

NameDescription
System_CAPS_pubmethodDiagramItem()

Initializes a new instance of the DiagramItem class.

System_CAPS_pubmethodDiagramItem(LinkShape^, LineSegment^)

Initializes a new instance of the DiagramItem class to represent the specified LineSegment.

System_CAPS_pubmethodDiagramItem(LinkShape^, LineSegment^, AnchorPoint^)

Initializes a new instance of the DiagramItem class to represent the specified AnchorPoint.

System_CAPS_pubmethodDiagramItem(ShapeElement^)

Initializes a new instance of the DiagramItem class to represent the specified ShapeElement.

System_CAPS_pubmethodDiagramItem(ShapeElement^, ShapeField^)

Initializes a new instance of the DiagramItem class to represent the specified ShapeField.

System_CAPS_pubmethodDiagramItem(ShapeElement^, ShapeField^, ShapeSubField^)

Initializes a new instance of the DiagramItem class to represent the specified ShapeSubField.

System_CAPS_pubmethodDiagramItem(ShapeElement^, ShapeField^, ShapeSubField^, LineSegment^, AnchorPoint^)

Initializes a new instance of the DiagramItem class to represent the specified ShapeSubField.

NameDescription
System_CAPS_pubpropertyAbsoluteBoundingBox

Gets the bounding box in world units relative to the top-left of the diagram.

System_CAPS_pubpropertyAnchorPoint

Gets the anchorPoint.

System_CAPS_pubpropertyCanFocus

Gets a value indicating whether this DiagramItem is focusable.

System_CAPS_pubpropertyCanSelect

Gets a value indicating whether this DiagramItem is selectable.

System_CAPS_pubpropertyDiagram

Gets the Diagram that the shape belongs to.

System_CAPS_pubpropertyField

Gets the field.

System_CAPS_pubpropertyIsDiagram

Gets a value indicating whether the DiagramItem is the diagram.

System_CAPS_pubpropertyParent

Gets the parent DiagramItem.

System_CAPS_pubpropertyRepresentedElements

Gets a collection of ModelElements that this DiagramItem represents.

System_CAPS_pubpropertySegment

Gets the segment.

System_CAPS_pubpropertyShape

Gets the shape.

System_CAPS_pubpropertySubField

Gets the subfield.

NameDescription
System_CAPS_pubmethodClone()

Creates a new DiagramItem that is a copy of the current instance.

System_CAPS_pubmethodEquals(Object^)

Gets a value indicating whether two DiagramItem objects are equal.(Overrides Object::Equals(Object^).)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetAccessibleObject(DiagramClientView^)

Gets the AccessibleObject for a DiagramItem.

System_CAPS_pubmethodGetHashCode()

Gets a hash code for this DiagramItem.(Overrides Object::GetHashCode().)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodSetItem(LinkShape^, LineSegment^)

Set the DiagramItem to represent the specified LineSegment

System_CAPS_pubmethodSetItem(LinkShape^, LineSegment^, AnchorPoint^)

Set the DiagramItem to represent the specified LineSegment's anchor point

System_CAPS_pubmethodSetItem(ShapeElement^)

Sets the DiagramItem to represent the specified ShapeElement.

System_CAPS_pubmethodSetItem(ShapeElement^, ShapeField^)

Sets the DiagramItem to represent the specified ShapeField.

System_CAPS_pubmethodSetItem(ShapeElement^, ShapeField^, ShapeSubField^)

Sets the DiagramItem to represent the specified ShapeSubField.

System_CAPS_pubmethodToString()

(Inherited from Object.)

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

Return to top
Show: