DiagramItem.SetItem Method (LinkShape, LineSegment, AnchorPoint)
Set the DiagramItem to represent the specified LineSegment's anchor point
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll)
Syntax
'Declaration
Public Sub SetItem ( _
shape As LinkShape, _
segment As LineSegment, _
anchorPoint As AnchorPoint _
)
public void SetItem(
LinkShape shape,
LineSegment segment,
AnchorPoint anchorPoint
)
public:
void SetItem(
LinkShape^ shape,
LineSegment^ segment,
AnchorPoint^ anchorPoint
)
member SetItem :
shape:LinkShape *
segment:LineSegment *
anchorPoint:AnchorPoint -> unit
public function SetItem(
shape : LinkShape,
segment : LineSegment,
anchorPoint : AnchorPoint
)
Parameters
shape
Type: Microsoft.VisualStudio.Modeling.Diagrams.LinkShapeThe parent ShapeElement of the LineSegment. This cannot be null.
segment
Type: Microsoft.VisualStudio.Modeling.Diagrams.LineSegmentThe LineSegment that this DiagramItem is to represent.
anchorPoint
Type: Microsoft.VisualStudio.Modeling.Diagrams.AnchorPointThe anchor point on the line segment
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.