currentPositionInSet property

int get currentPositionInSet

Returns the current 1-based integer for the ordinal position in the set for the element.

To learn more, see learn.microsoft.com/windows/win32/api/uiautomationclient/nf-uiautomationclient-iuiautomationelement4-get_currentpositioninset.

Implementation

int get currentPositionInSet {
  final retVal = adaptiveCalloc<Int32>();
  final hr$ = HRESULT(_get_CurrentPositionInSetFn(ptr, retVal));
  if (hr$.isError) {
    free(retVal);
    throw WindowsException(hr$);
  }
  final result$ = retVal.value;
  free(retVal);
  return result$;
}