SdtListItemCollection
Overview
SdtListItemCollection is a class in Aspose.Words FOSS for Java.
Inherits from: Iterable<SdtListItem>, Cloneable.
Provides access to SdtListItem elements of a structured document tag.
Edition status of its 10 listed members (a property and its accessor methods are listed separately, overloads once): 10 not yet exercised by a verified example.
This class declares 8 methods for SdtListItemCollection objects in Java programs.
Available methods include: add, clear, get, getCount, getSelectedValue, iterator, removeAt, setSelectedValue.
Public members are accessible to any Java application after installing the Aspose.Words FOSS for Java package.
Properties: count, selectedValue.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
selectedValue | SdtListItem | Read/Write | Specifies currently selected value in this list. |
count | int | Read | Gets number of items in the collection. |
Methods
| Signature | Description |
|---|---|
iterator() → Iterator<SdtListItem> | Returns an iterator object that can be used to iterate over all items in the collection. |
add(item: SdtListItem) | Adds an item to this collection. |
removeAt(index: int) | Removes a list item at the specified index. |
clear() | Clears all items from this collection. |
getSelectedValue() → SdtListItem | Specifies currently selected value in this list. |
setSelectedValue(value: SdtListItem) | Sets the selected value value. |
get(index: int) → SdtListItem | Returns a SdtListItem object given its zero-based index in the collection. |
getCount() → int | Gets number of items in the collection. |