GeometryTryGetSegment Method
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.MediaAssembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
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
- 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 Geometry
- The resulting snipped path.
BooleanIf the snipping operation is successful.