Plumtree EDK (Enterprise Web Development Kit) 5.4.0 |

# ISelectionList Interface

A selection list is a user-defined list of text values that specifies the list of valid values for an `ISelectionListProperty` property that can be added to an `IDataEntryTemplate`. An `ISelectionList` is similar to a drop-down menu which contains multiple pre-defined text values for a property. A user can select from the pre-defined list of values instead of typing a value for a text field. A selection list simplifies content item creation because it ensures that the value is spelled correctly and it is a valid value for that field.

A selection list can only be deleted if it is not currently being used by a `IDataEntryTemplate`. A given selection list can be re-used in multiple `ISelectionListProperty`s and in different `IDataEntryTemplate`s.

In the following example, a selection list is created that contains abbreviations for the U.S. states.

    // Create a selection list representing states
    String[] stateOptionValues = {"CA", "MA"};
    ISelectionList stateSelectionList = selectionListManager.CreateSelectionList(rootFolder, "State Selection List", stateOptionValues);
    stateSelectionList.store();
    // Expand the list options
    String[] expandedStateOptionValues = {"OR", "NY"};
    stateSelectionList.AddValues(expandedStateOptionValues);
    stateSelectionList.Store();
    // The list now contains "CA", "MA", "OR", "NY"
    // Remove the expanded options
    stateSelectionList.RemoveValues(expandedStateOptionValues);
    stateSelectionList.Store();
    // The list now contains "CA", "MA"

For a list of all members of this type, see ISelectionList Members.

public interface ISelectionList

#### Requirements

Namespace: Plumtree.Remote.PRC.Content.SelectionList

Assembly: edk (in edk.dll)

#### See Also

ISelectionList Members | Plumtree.Remote.PRC.Content.SelectionList Namespace