cachedOptimizeForVisualContent property

bool get cachedOptimizeForVisualContent

Retrieves a cached value that indicates whether the provider exposes only elements that are visible.

To learn more, see learn.microsoft.com/windows/win32/api/uiautomationclient/nf-uiautomationclient-iuiautomationelement2-get_cachedoptimizeforvisualcontent.

Implementation

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