labels property

IEnumString? get labels

Gets the label enumerator for the spell checker option.

To learn more, see learn.microsoft.com/windows/win32/api/spellcheck/nf-spellcheck-ioptiondescription-get_labels.

Implementation

IEnumString? get labels {
  final value = adaptiveCalloc<VTablePointer>();
  final hr$ = HRESULT(_get_LabelsFn(ptr, value));
  if (hr$.isError) {
    free(value);
    throw WindowsException(hr$);
  }
  final result$ = value.value;
  free(value);
  if (result$.isNull) return null;
  return .new(result$);
}