Represents the list of all valid limit criteria. See Limits (Collection).
The Add (Method) is unavailable for AvailableValues (Collection) because values are in the database. For the CustomValues (Collection), the Add (Method) adds a value to the list. For the SelectedValues (Collection), the Add (Method) adds a value to the selected list. The AddAll (Method) of the SelectedValues (Collection) selects all values of AvailableValues or CustomValues (Collection). |
This example illustrates how to add all values in AvailableValues (Collection) to the SelectedValues (Collection). This is the same as performing a select all values and transferring the selection in the Limit User Interface:
LimitCount = ActiveDocument.Sections["Results"].Limits[1].AvailableValues.Countfor (i=1;i<=LimitCount;i++){MyVal = ActiveDocument.Sections["Results"].Limits[1].AvailableValues[i]ActiveDocument.Sections["Results"].Limits[1].SelectedValues.Add(MyVal)}
Add(ValueItem as Value), AddAll(), Item(Number Index), RemoveAll()