Freigeben über


DiagramItem.SetItem Method

Definition

Overloads

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.

SetItem(ShapeElement)

Sets the DiagramItem to represent the specified ShapeElement.

public:
 void SetItem(Microsoft::VisualStudio::Modeling::Diagrams::ShapeElement ^ shape);
public void SetItem (Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement shape);
member this.SetItem : Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement -> unit
Public Sub SetItem (shape As ShapeElement)

Parameters

shape
ShapeElement

The ShapeElement that this DiagramItem is to represent.

Applies to

SetItem(LinkShape, LineSegment)

Set the DiagramItem to represent the specified LineSegment

public:
 void SetItem(Microsoft::VisualStudio::Modeling::Diagrams::LinkShape ^ shape, Microsoft::VisualStudio::Modeling::Diagrams::LineSegment ^ segment);
public void SetItem (Microsoft.VisualStudio.Modeling.Diagrams.LinkShape shape, Microsoft.VisualStudio.Modeling.Diagrams.LineSegment segment);
member this.SetItem : Microsoft.VisualStudio.Modeling.Diagrams.LinkShape * Microsoft.VisualStudio.Modeling.Diagrams.LineSegment -> unit
Public Sub SetItem (shape As LinkShape, segment As LineSegment)

Parameters

shape
LinkShape

The parent ShapeElement of the LineSegment. This cannot be null.

segment
LineSegment

The LineSegment that this DiagramItem is to represent.

Applies to

SetItem(ShapeElement, ShapeField)

Sets the DiagramItem to represent the specified ShapeField.

public:
 void SetItem(Microsoft::VisualStudio::Modeling::Diagrams::ShapeElement ^ shape, Microsoft::VisualStudio::Modeling::Diagrams::ShapeField ^ field);
public void SetItem (Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement shape, Microsoft.VisualStudio.Modeling.Diagrams.ShapeField field);
member this.SetItem : Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement * Microsoft.VisualStudio.Modeling.Diagrams.ShapeField -> unit
Public Sub SetItem (shape As ShapeElement, field As ShapeField)

Parameters

shape
ShapeElement

The parent ShapeElement of the ShapeField. This cannot be null.

field
ShapeField

The ShapeField that this DiagramItem is to represent.

Applies to

SetItem(LinkShape, LineSegment, AnchorPoint)

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

public:
 void SetItem(Microsoft::VisualStudio::Modeling::Diagrams::LinkShape ^ shape, Microsoft::VisualStudio::Modeling::Diagrams::LineSegment ^ segment, Microsoft::VisualStudio::Modeling::Diagrams::AnchorPoint ^ anchorPoint);
public void SetItem (Microsoft.VisualStudio.Modeling.Diagrams.LinkShape shape, Microsoft.VisualStudio.Modeling.Diagrams.LineSegment segment, Microsoft.VisualStudio.Modeling.Diagrams.AnchorPoint anchorPoint);
member this.SetItem : Microsoft.VisualStudio.Modeling.Diagrams.LinkShape * Microsoft.VisualStudio.Modeling.Diagrams.LineSegment * Microsoft.VisualStudio.Modeling.Diagrams.AnchorPoint -> unit
Public Sub SetItem (shape As LinkShape, segment As LineSegment, anchorPoint As AnchorPoint)

Parameters

shape
LinkShape

The parent ShapeElement of the LineSegment. This cannot be null.

segment
LineSegment

The LineSegment that this DiagramItem is to represent.

anchorPoint
AnchorPoint

The anchor point on the line segment

Applies to

SetItem(ShapeElement, ShapeField, ShapeSubField)

Sets the DiagramItem to represent the specified ShapeSubField.

public:
 void SetItem(Microsoft::VisualStudio::Modeling::Diagrams::ShapeElement ^ shape, Microsoft::VisualStudio::Modeling::Diagrams::ShapeField ^ field, Microsoft::VisualStudio::Modeling::Diagrams::ShapeSubField ^ subfield);
public void SetItem (Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement shape, Microsoft.VisualStudio.Modeling.Diagrams.ShapeField field, Microsoft.VisualStudio.Modeling.Diagrams.ShapeSubField subfield);
member this.SetItem : Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement * Microsoft.VisualStudio.Modeling.Diagrams.ShapeField * Microsoft.VisualStudio.Modeling.Diagrams.ShapeSubField -> unit
Public Sub SetItem (shape As ShapeElement, field As ShapeField, subfield As ShapeSubField)

Parameters

shape
ShapeElement

The parent ShapeElement of the ShapeSubField. This cannot be null.

field
ShapeField

The parent ShapeField of the ShapeSubField. This cannot be null.

subfield
ShapeSubField

Applies to