A collection of strings that represent all the items in a drop-down form field.
Shows how to insert a combo box field, and edit the elements in its item collection.
#include <Aspose.Words.Cpp/Fields/DropDownItemCollection.h>
Public Types | |
using | const_iterator = typename const_iterator |
using | iterator = typename iterator |
using | iterator_holder_type = List< String > |
Public Member Functions | |
int32_t | Add (String value) |
Adds a string to the end of the collection. More... | |
const_iterator | begin () const noexcept |
iterator | begin () noexcept |
const_iterator | cbegin () const noexcept |
const_iterator | cend () const noexcept |
void | Clear () |
Removes all elements from the collection. More... | |
bool | Contains (String value) |
Determines whether the collection contains the specified value. More... | |
const_iterator | end () const noexcept |
iterator | end () noexcept |
int32_t | get_Count () |
Gets the number of elements contained in the collection. More... | |
SharedPtr< IEnumerator< String > > | GetEnumerator () override |
Returns an enumerator object that can be used to iterate over all items in the collection. More... | |
virtual const TypeInfo & | GetType () const override |
String | idx_get (int32_t index) |
Gets or sets the element at the specified index. More... | |
void | idx_set (int32_t index, String value) |
Gets or sets the element at the specified index. More... | |
int32_t | IndexOf (String value) |
Returns the zero-based index of the specified value in the collection. More... | |
void | Insert (int32_t index, String value) |
Inserts a string into the collection at the specified index. More... | |
virtual bool | Is (const TypeInfo &target) const override |
void | Remove (String name) |
Removes the specified value from the collection. More... | |
void | RemoveAt (int32_t index) |
Removes a value at the specified index. More... | |
Static Public Member Functions | |
static const TypeInfo & | Type () |
using Aspose::Words::Fields::DropDownItemCollection::const_iterator = typename iterator_holder_type::const_iterator |
using Aspose::Words::Fields::DropDownItemCollection::iterator = typename iterator_holder_type::iterator |
using Aspose::Words::Fields::DropDownItemCollection::iterator_holder_type = System::Collections::Generic::List<System::String> |
int32_t Aspose::Words::Fields::DropDownItemCollection::Add | ( | System::String | value | ) |
Adds a string to the end of the collection.
value | The string to add to the end of the collection. |
Shows how to insert a combo box field, and edit the elements in its item collection.
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
void Aspose::Words::Fields::DropDownItemCollection::Clear | ( | ) |
Removes all elements from the collection.
Shows how to insert a combo box field, and edit the elements in its item collection.
bool Aspose::Words::Fields::DropDownItemCollection::Contains | ( | System::String | value | ) |
Determines whether the collection contains the specified value.
value | Case-sensitive value to locate. |
Shows how to insert a combo box field, and edit the elements in its item collection.
|
noexcept |
|
noexcept |
int32_t Aspose::Words::Fields::DropDownItemCollection::get_Count | ( | ) |
Gets the number of elements contained in the collection.
Shows how to insert a combo box field, and edit the elements in its item collection.
|
overridevirtual |
Returns an enumerator object that can be used to iterate over all items in the collection.
Shows how to insert a combo box field, and edit the elements in its item collection.
Implements System::Collections::Generic::IEnumerable< class >.
|
overridevirtual |
Reimplemented from System::Object.
System::String Aspose::Words::Fields::DropDownItemCollection::idx_get | ( | int32_t | index | ) |
Gets or sets the element at the specified index.
Shows how to insert a combo box field, and edit the elements in its item collection.
void Aspose::Words::Fields::DropDownItemCollection::idx_set | ( | int32_t | index, |
System::String | value | ||
) |
Gets or sets the element at the specified index.
Shows how to insert a combo box field, and edit the elements in its item collection.
int32_t Aspose::Words::Fields::DropDownItemCollection::IndexOf | ( | System::String | value | ) |
Returns the zero-based index of the specified value in the collection.
value | The case-sensitive value to locate. |
Shows how to insert a combo box field, and edit the elements in its item collection.
void Aspose::Words::Fields::DropDownItemCollection::Insert | ( | int32_t | index, |
System::String | value | ||
) |
Inserts a string into the collection at the specified index.
index | The zero-based index at which value is inserted. |
value | The string to insert. |
Shows how to insert a combo box field, and edit the elements in its item collection.
|
overridevirtual |
Reimplemented from System::Object.
void Aspose::Words::Fields::DropDownItemCollection::Remove | ( | System::String | name | ) |
Removes the specified value from the collection.
name | The case-sensitive value to remove. |
Shows how to insert a combo box field, and edit the elements in its item collection.
void Aspose::Words::Fields::DropDownItemCollection::RemoveAt | ( | int32_t | index | ) |
Removes a value at the specified index.
index | The zero based index. |
Shows how to insert a combo box field, and edit the elements in its item collection.
|
static |