Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Creates a DiagramItem object given an IGeometryHost object.
Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
Syntax
'Declaration
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
- geometryHost 
 Type: Microsoft.VisualStudio.Modeling.Diagrams.IGeometryHost- The instance data for the geometry. 
- segment 
 Type: Microsoft.VisualStudio.Modeling.Diagrams.LineSegment- line segment within the LinkShape that was hit. 
Return Value
Type: Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem
.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.