cachedOrientation property
OrientationType
get
cachedOrientation
Retrieves a cached value that indicates the orientation of the element.
To learn more, see learn.microsoft.com/windows/win32/api/uiautomationclient/nf-uiautomationclient-iuiautomationelement-get_cachedorientation.
Implementation
OrientationType get cachedOrientation {
final retVal = adaptiveCalloc<Int32>();
final hr$ = HRESULT(_get_CachedOrientationFn(ptr, retVal));
if (hr$.isError) {
free(retVal);
throw WindowsException(hr$);
}
final result$ = retVal.value;
free(retVal);
return .new(result$);
}