SdtListItemCollection

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

NameTypeAccessDescription
selectedValueSdtListItemRead/WriteSpecifies currently selected value in this list.
countintReadGets number of items in the collection.

Methods

SignatureDescription
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() → SdtListItemSpecifies currently selected value in this list.
setSelectedValue(value: SdtListItem)Sets the selected value value.
get(index: int) → SdtListItemReturns a SdtListItem object given its zero-based index in the collection.
getCount() → intGets number of items in the collection.

See Also