Skip to main content

TryGetSegment 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.Media
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public bool TryGetSegment(
double startDistance,
double stopDistance,
bool startOnBeginFigure,
out Geometry?? segmentGeometry
)

Parameters

  Double
The contour distance to start snipping from.
  Double
The contour distance to stop snipping to.
  Boolean
If ture, the resulting snipped path will start with a BeginFigure call.
  Geometry
The resulting snipped path.

Return Value

Boolean
If the snipping operation is successful.

See Also

Reference

Geometry Class
Avalonia.Media Namespace