DiagramItem.SetItem Method (LinkShape, LineSegment)
Set the DiagramItem to represent the specified LineSegment
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
'Declaração
Public Sub SetItem ( _
shape As LinkShape, _
segment As LineSegment _
)
public void SetItem(
LinkShape shape,
LineSegment segment
)
public:
void SetItem(
LinkShape^ shape,
LineSegment^ segment
)
member SetItem :
shape:LinkShape *
segment:LineSegment -> unit
public function SetItem(
shape : LinkShape,
segment : LineSegment
)
Parameters
- shape
Type: Microsoft.VisualStudio.Modeling.Diagrams.LinkShape
The parent ShapeElement of the LineSegment. This cannot be null.
- segment
Type: Microsoft.VisualStudio.Modeling.Diagrams.LineSegment
The LineSegment that this DiagramItem is to represent.
.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.