Creates a shape geometry host.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.dll)
Syntax
'宣言
Protected Shared Function CreateDiagramItem ( _
geometryHost As IGeometryHost _
) As DiagramItem
'使用
Dim geometryHost As IGeometryHost
Dim returnValue As DiagramItem
returnValue = ShapeGeometry.CreateDiagramItem(geometryHost)
protected static DiagramItem CreateDiagramItem(
IGeometryHost geometryHost
)
protected:
static DiagramItem^ CreateDiagramItem(
IGeometryHost^ geometryHost
)
protected static function CreateDiagramItem(
geometryHost : IGeometryHost
) : DiagramItem
Parameters
geometryHost
Type: Microsoft.VisualStudio.Modeling.Diagrams.IGeometryHostThe instance of host data for the geometry.
Return Value
Type: Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem
The shape geometry that represents the IGeometryHost.
Permissions
- 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.