GeometryExtensionsToGeometry Method

Converts a Path to a Geometry.

Definition

Namespace: KGySoft.Drawing.WinUI
Assembly: KGySoft.Drawing.WinUI (in KGySoft.Drawing.WinUI.dll) Version: 10.0.0-rc.1
C#
public static Geometry ToGeometry(
	this Path path
)

Parameters

path  Path
The Path instance to convert to a Geometry.

Return Value

Geometry
A Geometry instance that represents the same geometry as the specified Path.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Path. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Exceptions

See Also