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)
- C#
- VB
- F#
public bool TryGetSegment(
double startDistance,
double stopDistance,
bool startOnBeginFigure,
out Geometry?? segmentGeometry
)
Public Function TryGetSegment (
startDistance As Double,
stopDistance As Double,
startOnBeginFigure As Boolean,
<OutAttribute> ByRef segmentGeometry As Geometry
) As Boolean
member TryGetSegment :
startDistance : float *
stopDistance : float *
startOnBeginFigure : bool *
segmentGeometry : Geometry byref -> bool
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.