DropDownItemCollection
Overview
DropDownItemCollection is a class in Aspose.Words FOSS for Java.
Inherits from: Iterable<String>, IComplexAttr.
A collection of strings that represent all the items in a drop-down form field.
Edition status of its 12 listed members (a property and its accessor methods are listed separately, overloads once): 12 not yet exercised by a verified example.
This class declares 11 methods for DropDownItemCollection objects in Java programs.
Available methods include: add, clear, contains, get, getCount, indexOf, insert, iterator, remove, removeAt, set.
Public members are accessible to any Java application after installing the Aspose.Words FOSS for Java package.
Properties: count.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
count | int | Read | Gets the number of elements contained in the collection. |
Methods
| Signature | Description |
|---|---|
getCount() → int | Gets the number of elements contained in the collection. |
get(index: int) → String | Gets or sets the element at the specified index. |
set(index: int, value: String) | Calls set(index, value) on this DropDownItemCollection instance. |
iterator() → Iterator<String> | Returns an iterator object that can be used to iterate over all items in the collection. |
add(value: String) → int | Adds a string to the end of the collection. |
contains(value: String) → boolean | Determines whether the collection contains the specified value. |
indexOf(value: String) → int | Returns the zero-based index of the specified value in the collection. |
insert(index: int, value: String) | Inserts a string into the collection at the specified index. |
remove(name: String) | Removes the specified value from the collection. |
removeAt(index: int) | Removes a value at the specified index. |
clear() | Removes all elements from the collection. |