getCount method

int getCount()

Gets the number of elements in the TextFieldList object.

return Number of elements in the TextField object. throws DocumentException An error has occurred during Document Library execution.

Implementation

int getCount() {
  Pointer<Int> pCount = calloc();
  try {
    var err = documentSDK.id3DocumentTextFieldList_GetCount(_pHandle.value, pCount);
    if (err != DocumentError.success.value) {
      throw DocumentException(err);
    }
    final vCount = pCount.value;
    return vCount;
  } finally {
    calloc.free(pCount);
  }
}