length property
int
get
length
Retrieves the number of text ranges in the collection.
To learn more, see learn.microsoft.com/windows/win32/api/uiautomationclient/nf-uiautomationclient-iuiautomationtextrangearray-get_length.
Implementation
int get length {
final length = adaptiveCalloc<Int32>();
final hr$ = HRESULT(_get_LengthFn(ptr, length));
if (hr$.isError) {
free(length);
throw WindowsException(hr$);
}
final result$ = length.value;
free(length);
return result$;
}