SortedList
Previous  Next

The SortedList object provides the following methods and properties



Methods

Add(Key As String, Val As String) :  Adds the key/value pair to the collection.

Clear : Clears the collection.

ContainsKey(Obj As String) : Returns true if the collection contains Obj as a key, false if not.

ContainsValue(Obj As String) : Returns true if the collection contains Obj as a value, false if not.

GetKeyAt(Index As Int32) : Returns the key of the key/value pair at that index in the collection.

GetValueAt(Index As Int32) : Returns the value key/value pair at that index in the collection.

IndexOfKey(Obj As String) : Returns the index in the collection of the key/value pair with that key.

IndexOfValue(Obj As String) : Returns the index in the collection of the first key/value pair with that value.

SetValueAt(Index As Int32, String value) : Changes the value of the key/value pair at that index in the collection.

ToArrayKeys : Returns the keys of the collection as an array.

ToArrayValues : Returns the values of the collection as an array.

Item(Key As String) : Returns the value of the key/value pair with that key.

Remove(Key As String) : Removes from the collection the key/value pair with that key.

RemoveAt(Index As Int32) : Removes from the collection the key/value pair at that index in the collection.


Properties

I signifies readable, O signifies settable.


Count : Int32 [I] : The number of items in the collection.

ControlRef : Control [I] : The underlying .NET collection SortedList control. Not useful within Basic4PPC.

 Dllversion : Double [I] : The version number of this library.