Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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 static PathGeometry CreateFromGeometry(
	Geometry geometry
)

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:
© 2018 Microsoft