cachedAnnotationTypes property
Returns the cached list of annotation types associated with this element, such as comment, header, footer, and so on.
To learn more, see learn.microsoft.com/windows/win32/api/uiautomationclient/nf-uiautomationclient-iuiautomationelement4-get_cachedannotationtypes.
Implementation
Pointer<SAFEARRAY> get cachedAnnotationTypes {
final retVal = adaptiveCalloc<Pointer<SAFEARRAY>>();
final hr$ = HRESULT(_get_CachedAnnotationTypesFn(ptr, retVal));
if (hr$.isError) {
free(retVal);
throw WindowsException(hr$);
}
final result$ = retVal.value;
free(retVal);
return result$;
}