Stroke.GetGeometry Method ()


Gets the Geometry of the current Stroke.

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

public Geometry GetGeometry()

Return Value

Type: System.Windows.Media.Geometry

A Geometry that represents the Stroke.

Use the GetGeometry method to get a PathGeometry to customize the shape of the Stroke. Consider caching the Geometry to avoid calling GetGeometry multiple times, which may impact performance.

.NET Framework
Available since 3.0
Return to top