TryGetLocationCurve

bool TryGetLocationCurve(this Element element, out LocationCurve? locCurve)

Tries to get the location curve (path) of an element.

Parameters

  • elementElement

    The element to inspect.

  • locCurveout LocationCurve?

    Outputs the location curve if available.

Returns: True if a curve location exists; otherwise false.

Example

if (element.TryGetLocationCurve(out var lc))
{
TaskDialog.Show("Curve", lc.Curve.Length.ToString());
}