com.aspose.words

Class DropDownItemCollection

  • java.lang.Object
    • com.aspose.words.DropDownItemCollection
  • All Implemented Interfaces:
    java.lang.Iterable
    public class DropDownItemCollection 
    extends java.lang.Object

A collection of strings that represent all the items in a drop-down form field.
See Also:
FormField, FormField.DropDownItems

Property Getters/Setters Summary
intgetCount()
Gets the number of elements contained in the collection.
java.lang.Stringget(int index)
void
set(intindex, java.lang.Stringvalue)
           Gets or sets the element at the specified index.
 
Method Summary
booleanadd(java.lang.String s)
Adds a string to the end of the collection.
voidclear()
Removes all elements from the collection.
booleancontains(java.lang.String value)
Determines whether the collection contains the specified value.
intindexOf(java.lang.String value)
Returns the zero-based index of the specified value in the collection.
voidinsert(int index, java.lang.String value)
Inserts a string into the collection at the specified index.
java.util.Iterator<java.lang.String>iterator()
Returns an iterator object that can be used to iterate over all items in the collection.
voidremove(java.lang.String name)
Removes the specified value from the collection.
voidremoveAt(int index)
Removes a value at the specified index.
 

    • Property Getters/Setters Detail

      • getCount

        public int getCount()
        
        Gets the number of elements contained in the collection.
      • get/set

        public java.lang.String get(int index) / public void set(int index, java.lang.String value)
        
        Gets or sets the element at the specified index.
    • Method Detail

      • add

        public boolean add(java.lang.String s)
        Adds a string to the end of the collection.
        Parameters:
        value - The string to add to the end of the collection.
        Returns:
        true (as per the general contract of Collection.add).
      • clear

        public void clear()
        Removes all elements from the collection.
      • contains

        public boolean contains(java.lang.String value)
        Determines whether the collection contains the specified value.
        Parameters:
        value - Case-sensitive value to locate.
        Returns:
        True if the item is found in the collection; otherwise, false.
      • indexOf

        public int indexOf(java.lang.String value)
        Returns the zero-based index of the specified value in the collection.
        Parameters:
        value - The case-sensitive value to locate.
        Returns:
        The zero based index. Negative value if not found.
      • insert

        public void insert(int index, java.lang.String value)
        Inserts a string into the collection at the specified index.
        Parameters:
        index - The zero-based index at which value is inserted.
        value - The string to insert.
      • iterator

        public java.util.Iterator<java.lang.String> iterator()
        Returns an iterator object that can be used to iterate over all items in the collection.
      • remove

        public void remove(java.lang.String name)
        Removes the specified value from the collection.
        Parameters:
        name - The case-sensitive value to remove.
      • removeAt

        public void removeAt(int index)
        Removes a value at the specified index.
        Parameters:
        index - The zero based index.