cachedIsControlElement property

bool get cachedIsControlElement

Retrieves a cached value that indicates whether the element is a control element.

To learn more, see learn.microsoft.com/windows/win32/api/uiautomationclient/nf-uiautomationclient-iuiautomationelement-get_cachediscontrolelement.

Implementation

bool get cachedIsControlElement {
  final retVal = adaptiveCalloc<Int32>();
  final hr$ = HRESULT(_get_CachedIsControlElementFn(ptr, retVal));
  if (hr$.isError) {
    free(retVal);
    throw WindowsException(hr$);
  }
  final result$ = retVal.value;
  free(retVal);
  return result$ != FALSE;
}