SelectedList (Object)

Member of:

ListBoxControl object

Description:

Represents a selected items within a list box.

Example:

This example shows how to add the selected items from a list box control to a preexisting results limit:

ActiveDocument.Sections["Results"].Limits[1].SelectedValues.RemoveAll() 
for(I = 1; I <= ListBox.SelectedList.Count;I++)
{
          NewLimitValue = ListBox.SelectedList[I]
          ActiveDocument.Sections["Results"].Limits[1].SelectedValues.Add(NewLimitValue)
}

Methods:

Item(Index As Number) As String, ItemIndex(Index As Number) As Number

Properties:

Read-only: Property Count As Number