DropDownItemCollection
Overview
DropDownItemCollection is a class in Aspose.Words FOSS for .NET.
Inherits from: IEnumerable<string>, IComplexAttr.
A collection of strings that represent all the items in a drop-down form field.
This class provides 8 methods for working with DropDownItemCollection objects in .NET programs.
Available methods include: Add, Clear, Contains, GetEnumerator, IndexOf, Insert, Remove, RemoveAt.
All public members are accessible to any .NET application after installing the Aspose.Words FOSS for .NET package.
Properties: Count.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
Count | int | Read | Gets the number of elements contained in the collection. |
Methods
| Signature | Description |
|---|---|
GetEnumerator() | Returns an enumeratoriteratorenumerator object that can be used to iterate over all items in the collection. |
Add(value: string) | Adds a string to the end of the collection. |
Contains(value: string) | Determines whether the collection contains the specified value. |
IndexOf(value: string) | 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. |