Aspose::Words::Markup::SdtListItemCollection Class Reference

Provides access to Aspose::Words::Markup::SdtListItem elements of a structured document tag. More...

#include "Aspose.Words.Cpp/Model/Markup/Sdt/SdtListItemCollection.h"

Inherits IEnumerable< System::SharedPtr< Aspose::Words::Markup::SdtListItem > >.

Public Member Functions

System::SharedPtr< Aspose::Words::Markup::SdtListItemget_SelectedValue ()
 Specifies currently selected value in this list. Null value allowed, meaning that no currently selected entry is associated with this list item collection. More...
 
void set_SelectedValue (System::SharedPtr< Aspose::Words::Markup::SdtListItem > value)
 Setter for Aspose::Words::Markup::SdtListItemCollection::get_SelectedValue. More...
 
int32_t get_Count ()
 Gets number of items in the collection. More...
 
System::SharedPtr< System::Collections::Generic::IEnumerator< System::SharedPtr< Aspose::Words::Markup::SdtListItem > > > GetEnumerator ()
 Returns an enumerator object that can be used to iterate over all items in the collection. More...
 
void Add (System::SharedPtr< Aspose::Words::Markup::SdtListItem > item)
 Adds an item to this collection. More...
 
void RemoveAt (int32_t index)
 Removes a list item at the specified index. More...
 
void Clear ()
 Clears all items from this collection. More...
 
System::SharedPtr< Aspose::Words::Markup::SdtListItemidx_get (int32_t index)
 Returns a Aspose::Words::Markup::SdtListItem object given its zero-based index in the collection. More...
 

Detailed Description

Provides access to Aspose::Words::Markup::SdtListItem elements of a structured document tag.

Member Function Documentation

◆ Add()

void Aspose::Words::Markup::SdtListItemCollection::Add ( System::SharedPtr< Aspose::Words::Markup::SdtListItem item)

Adds an item to this collection.

◆ Clear()

void Aspose::Words::Markup::SdtListItemCollection::Clear ( )

Clears all items from this collection.

◆ get_Count()

int32_t Aspose::Words::Markup::SdtListItemCollection::get_Count ( )

Gets number of items in the collection.

◆ get_SelectedValue()

System::SharedPtr<Aspose::Words::Markup::SdtListItem> Aspose::Words::Markup::SdtListItemCollection::get_SelectedValue ( )

Specifies currently selected value in this list. Null value allowed, meaning that no currently selected entry is associated with this list item collection.

◆ GetEnumerator()

System::SharedPtr<System::Collections::Generic::IEnumerator<System::SharedPtr<Aspose::Words::Markup::SdtListItem> > > Aspose::Words::Markup::SdtListItemCollection::GetEnumerator ( )

Returns an enumerator object that can be used to iterate over all items in the collection.

◆ idx_get()

System::SharedPtr<Aspose::Words::Markup::SdtListItem> Aspose::Words::Markup::SdtListItemCollection::idx_get ( int32_t  index)

Returns a Aspose::Words::Markup::SdtListItem object given its zero-based index in the collection.

◆ RemoveAt()

void Aspose::Words::Markup::SdtListItemCollection::RemoveAt ( int32_t  index)

Removes a list item at the specified index.

Parameters
indexThe zero-based index of the item to remove.

◆ set_SelectedValue()

void Aspose::Words::Markup::SdtListItemCollection::set_SelectedValue ( System::SharedPtr< Aspose::Words::Markup::SdtListItem value)