Description: XElementAccess has hasElements() but no getCount(). For containers that have only XEnumerationAccess I know if hasElements but no how many elements has. If I want transform enumeration in array() more easy to handle with createEnumeration(), I don't know in advance the UBound of the array for Dim Array(UBound). Why not add getCount() to XElementAccess ? Actual Results: XElementAccess has hasElements() but no getCount() Expected Results: XElementAccess has hasElements() also has getCount() Reproducible: Always User Profile Reset: No Additional Info: XElementAccess has hasElements() also has getCount()
I don't believe this is a bug. getCount() should be provided by XIndexAccess, not XEnumerationAccess https://api.libreoffice.org/docs/idl/ref/interfacecom_1_1sun_1_1star_1_1container_1_1XIndexAccess.html
Closing due to comment 1
It isn't a bug , but was better if getCount() would present in XEnumerationAccess. Thank you