getCount method

int getCount()

Gets the number of elements in the StringList object.

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

Implementation

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