cachedControllerFor property
IUIAutomationElementArray?
get
cachedControllerFor
Retrieves a cached array of UI Automation elements for which this element serves as the controller.
To learn more, see learn.microsoft.com/windows/win32/api/uiautomationclient/nf-uiautomationclient-iuiautomationelement-get_cachedcontrollerfor.
Implementation
IUIAutomationElementArray? get cachedControllerFor {
final retVal = adaptiveCalloc<VTablePointer>();
final hr$ = HRESULT(_get_CachedControllerForFn(ptr, retVal));
if (hr$.isError) {
free(retVal);
throw WindowsException(hr$);
}
final result$ = retVal.value;
free(retVal);
if (result$.isNull) return null;
return .new(result$);
}