Partilhar via


ShapeGeometry.GetPath Method

Definition

Overloads

GetPath(IGeometryHost)

Gets the GraphicsPath of the geometry in world units relative to the top-left of the IGeometryHost's parent. This is a singleton on the geometry class. Do not dispose. Use immediately. Use GetPathCopy if another path is needed!

GetPath(RectangleD)

Gets the GraphicsPath of the geometry in world units relative to the top-left of the IGeometryHost's parent. This is a singleton on the geometry. Do not dispose - this will crash! Use immediately. Use GetPathCopy if another path is needed!

GetPath(IGeometryHost)

Gets the GraphicsPath of the geometry in world units relative to the top-left of the IGeometryHost's parent. This is a singleton on the geometry class. Do not dispose. Use immediately. Use GetPathCopy if another path is needed!

public:
 virtual System::Drawing::Drawing2D::GraphicsPath ^ GetPath(Microsoft::VisualStudio::Modeling::Diagrams::IGeometryHost ^ geometryHost);
public virtual System.Drawing.Drawing2D.GraphicsPath GetPath (Microsoft.VisualStudio.Modeling.Diagrams.IGeometryHost geometryHost);
abstract member GetPath : Microsoft.VisualStudio.Modeling.Diagrams.IGeometryHost -> System.Drawing.Drawing2D.GraphicsPath
override this.GetPath : Microsoft.VisualStudio.Modeling.Diagrams.IGeometryHost -> System.Drawing.Drawing2D.GraphicsPath
Public Overridable Function GetPath (geometryHost As IGeometryHost) As GraphicsPath

Parameters

geometryHost
IGeometryHost

The instance data for the geometry.

Returns

The GraphicsPath of the geometry in world units relative to the top-left of the IGeometryHost's parent.

Applies to

GetPath(RectangleD)

Gets the GraphicsPath of the geometry in world units relative to the top-left of the IGeometryHost's parent. This is a singleton on the geometry. Do not dispose - this will crash! Use immediately. Use GetPathCopy if another path is needed!

protected:
 virtual System::Drawing::Drawing2D::GraphicsPath ^ GetPath(Microsoft::VisualStudio::Modeling::Diagrams::RectangleD boundingBox);
protected virtual System.Drawing.Drawing2D.GraphicsPath GetPath (Microsoft.VisualStudio.Modeling.Diagrams.RectangleD boundingBox);
abstract member GetPath : Microsoft.VisualStudio.Modeling.Diagrams.RectangleD -> System.Drawing.Drawing2D.GraphicsPath
override this.GetPath : Microsoft.VisualStudio.Modeling.Diagrams.RectangleD -> System.Drawing.Drawing2D.GraphicsPath
Protected Overridable Function GetPath (boundingBox As RectangleD) As GraphicsPath

Parameters

boundingBox
RectangleD

The bounding box for the geometry in world units relative to the top-left of the IGeometryHost's parent.

Returns

The GraphicsPath of the geometry in world units relative to the top-left of the IGeometryHost's parent.

Applies to