PathGeometry.CreateFromGeometry Method (Geometry)

 
System_CAPS_noteNote

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

Creates a PathGeometry version of the specified Geometry.

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

Public Shared Function CreateFromGeometry (
	geometry As Geometry
) As PathGeometry

Parameters

geometry
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
Show: