IGeometryImpl.

TryGetSegment(double, double, bool, IGeometryImpl) Method

Summary

Attempts to get the corresponding path segment given by the two distances specified. Imagine it like snipping a part of the current geometry.
Namespace
Avalonia.Platform
Containing Type
IGeometryImpl

Syntax

bool TryGetSegment(double startDistance, double stopDistance, bool startOnBeginFigure, out IGeometryImpl segmentGeometry)

Parameters

Name Type Description
startDistance double The contour distance to start snipping from.
stopDistance double The contour distance to stop snipping to.
startOnBeginFigure bool If ture, the resulting snipped path will start with a BeginFigure call.
segmentGeometry IGeometryImpl The resulting snipped path.

Return Value

Type Description
bool If the snipping operation is successful.