LinkShapeGeometry.CreateDiagramItem(IGeometryHost, LineSegment) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.