Sdílet prostřednictvím


LinkShapeGeometry.CreateDiagramItem(IGeometryHost, LineSegment) Method

Definition

Creates a DiagramItem object given an IGeometryHost object.

protected:
 static Microsoft::VisualStudio::Modeling::Diagrams::DiagramItem ^ CreateDiagramItem(Microsoft::VisualStudio::Modeling::Diagrams::IGeometryHost ^ geometryHost, Microsoft::VisualStudio::Modeling::Diagrams::LineSegment ^ segment);
protected static Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem CreateDiagramItem (Microsoft.VisualStudio.Modeling.Diagrams.IGeometryHost geometryHost, Microsoft.VisualStudio.Modeling.Diagrams.LineSegment segment);
static member CreateDiagramItem : Microsoft.VisualStudio.Modeling.Diagrams.IGeometryHost * Microsoft.VisualStudio.Modeling.Diagrams.LineSegment -> Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem
Protected Shared Function CreateDiagramItem (geometryHost As IGeometryHost, segment As LineSegment) As DiagramItem

Parameters

geometryHost
IGeometryHost

The instance data for the geometry.

segment
LineSegment

line segment within the LinkShape that was hit.

Returns

The DiagramItem object which represents the IGeometryHost object.

Applies to