Partager via


LinkShapeGeometry.CreateDiagramItem Method

Creates a DiagramItem object given an IGeometryHost object.

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

Syntax

'Déclaration
Protected Shared Function CreateDiagramItem ( _
    geometryHost As IGeometryHost, _
    segment As LineSegment _
) As DiagramItem
protected static DiagramItem CreateDiagramItem(
    IGeometryHost geometryHost,
    LineSegment segment
)
protected:
static DiagramItem^ CreateDiagramItem(
    IGeometryHost^ geometryHost, 
    LineSegment^ segment
)
static member CreateDiagramItem : 
        geometryHost:IGeometryHost * 
        segment:LineSegment -> DiagramItem 
protected static function CreateDiagramItem(
    geometryHost : IGeometryHost, 
    segment : LineSegment
) : DiagramItem

Parameters

Return Value

Type: Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem

.NET Framework Security

See Also

Reference

LinkShapeGeometry Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace