cachedIsContentElement property

bool get cachedIsContentElement

A cached value that indicates whether the element is a content element.

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

Implementation

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