IGeometryImplTryGetSegment Method

Attempts to get the corresponding path segment given by the two distances specified. Imagine it like snipping a part of the current geometry.

Definition

Namespace: Avalonia.Platform
Assembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
bool TryGetSegment(
	double startDistance,
	double stopDistance,
	bool startOnBeginFigure,
	out IGeometryImpl?? segmentGeometry
)

Parameters

startDistance  Double
The contour distance to start snipping from.
stopDistance  Double
The contour distance to stop snipping to.
startOnBeginFigure  Boolean
If ture, the resulting snipped path will start with a BeginFigure call.
segmentGeometry  IGeometryImpl
The resulting snipped path.

Return Value

Boolean
If the snipping operation is successful.

See Also