PathGeometry.CreateFromGeometry Method (Geometry)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Creates a PathGeometry version of the specified Geometry.

Namespace:   System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)

static member CreateFromGeometry : 
        geometry:Geometry -> PathGeometry


Type: System.Windows.Media.Geometry

The geometry from which to create a PathGeometry.

Return Value

Type: System.Windows.Media.PathGeometry

A PathGeometry created from the current values of the specified Geometry.

If the specified geometry is animated, its current animated values are used when constructing the new PathGeometry (although the animations themselves are not copied). If the geometry is animated, the conversion may result in some loss of precision.

.NET Framework
Available since 3.0
Return to top