The TreeSet type exposes the following members.
Constructors
Name | Description | |
---|---|---|
TreeSet |
Initializes a new instance of the TreeSet class.
| |
TreeSet(ICollection) |
Initializes a new instance of the TreeSet class.
| |
TreeSet(IComparer) |
Initializes a new instance of the TreeSet class.
|
Methods
Name | Description | |
---|---|---|
Add |
Adds a new element to the ArrayList if it is not already present and sorts the ArrayList.
| |
AddAll |
Adds all the elements of the specified collection that are not present to the list.
| |
AddRange | Adds the elements of an ICollection to the end of the ArrayList. (Inherited from ArrayList.) | |
BinarySearch(Object) | Searches the entire sorted ArrayList for an element using the default comparer and returns the zero-based index of the element. (Inherited from ArrayList.) | |
BinarySearch(Object, IComparer) | Searches the entire sorted ArrayList for an element using the specified comparer and returns the zero-based index of the element. (Inherited from ArrayList.) | |
BinarySearch(Int32, Int32, Object, IComparer) | Searches a range of elements in the sorted ArrayList for an element using the specified comparer and returns the zero-based index of the element. (Inherited from ArrayList.) | |
Clear | Removes all elements from the ArrayList. (Inherited from ArrayList.) | |
Clone | Creates a shallow copy of the ArrayList. (Inherited from ArrayList.) | |
Contains |
Determines whether an element is in the the current TreeSetSupport collection. The IComparer defined for
the current set will be used to make comparisons between the elements already inserted in the collection and
the item specified.
(Overrides ArrayList Contains(Object).) | |
CopyTo(Array) | Copies the entire ArrayList to a compatible one-dimensional Array, starting at the beginning of the target array. (Inherited from ArrayList.) | |
CopyTo(Array, Int32) | Copies the entire ArrayList to a compatible one-dimensional Array, starting at the specified index of the target array. (Inherited from ArrayList.) | |
CopyTo(Int32, Array, Int32, Int32) | Copies a range of elements from the ArrayList to a compatible one-dimensional Array, starting at the specified index of the target array. (Inherited from ArrayList.) | |
Equals | (Inherited from Object.) | |
Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
First |
Returns the first item in the set.
| |
GetEnumerator | Returns an enumerator for the entire ArrayList. (Inherited from ArrayList.) | |
GetEnumerator(Int32, Int32) | Returns an enumerator for a range of elements in the ArrayList. (Inherited from ArrayList.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetRange | (Inherited from ArrayList.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IndexOf(Object) | Searches for the specified Object and returns the zero-based index of the first occurrence within the entire ArrayList. (Inherited from ArrayList.) | |
IndexOf(Object, Int32) | Searches for the specified Object and returns the zero-based index of the first occurrence within the range of elements in the ArrayList that extends from the specified index to the last element. (Inherited from ArrayList.) | |
IndexOf(Object, Int32, Int32) | Searches for the specified Object and returns the zero-based index of the first occurrence within the range of elements in the ArrayList that starts at the specified index and contains the specified number of elements. (Inherited from ArrayList.) | |
Insert | Inserts an element into the ArrayList at the specified index. (Inherited from ArrayList.) | |
InsertRange | Inserts the elements of a collection into the ArrayList at the specified index. (Inherited from ArrayList.) | |
LastIndexOf(Object) | Searches for the specified Object and returns the zero-based index of the last occurrence within the entire ArrayList. (Inherited from ArrayList.) | |
LastIndexOf(Object, Int32) | Searches for the specified Object and returns the zero-based index of the last occurrence within the range of elements in the ArrayList that extends from the first element to the specified index. (Inherited from ArrayList.) | |
LastIndexOf(Object, Int32, Int32) | Searches for the specified Object and returns the zero-based index of the last occurrence within the range of elements in the ArrayList that contains the specified number of elements and ends at the specified index. (Inherited from ArrayList.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Remove | Removes the first occurrence of a specific object from the ArrayList. (Inherited from ArrayList.) | |
RemoveAt | Removes the element at the specified index of the ArrayList. (Inherited from ArrayList.) | |
RemoveRange | Removes a range of elements from the ArrayList. (Inherited from ArrayList.) | |
Reverse | Reverses the order of the elements in the entire ArrayList. (Inherited from ArrayList.) | |
Reverse(Int32, Int32) | Reverses the order of the elements in the specified range. (Inherited from ArrayList.) | |
SetRange | Copies the elements of a collection over a range of elements in the ArrayList. (Inherited from ArrayList.) | |
Sort | Sorts the elements in the entire ArrayList using the IComparable implementation of each element. (Inherited from ArrayList.) | |
Sort(IComparer) | Sorts the elements in the entire ArrayList using the specified comparer. (Inherited from ArrayList.) | |
Sort(Int32, Int32, IComparer) | Sorts the elements in a range of elements in ArrayList using the specified comparer. (Inherited from ArrayList.) | |
TailSet |
Returns a portion of the list whose elements are greater than the limit object parameter.
| |
ToArray | (Inherited from ArrayList.) | |
ToArray(Type) | Copies the elements of the ArrayList to a new array of the specified element type. (Inherited from ArrayList.) | |
ToString | (Inherited from Object.) | |
TrimToSize | Sets the capacity to the actual number of elements in the ArrayList. (Inherited from ArrayList.) | |
UnmodifiableTreeSet |
Unmodifiables the tree set.
|
Properties
Name | Description | |
---|---|---|
Capacity | Gets or sets the number of elements that the ArrayList can contain. (Inherited from ArrayList.) | |
Comparator |
Gets the IComparator object used to sort this set.
| |
Count | Gets the number of elements actually contained in the ArrayList. (Inherited from ArrayList.) | |
IsFixedSize | Gets a value indicating whether the ArrayList has a fixed size. (Inherited from ArrayList.) | |
IsReadOnly | Gets a value indicating whether the ArrayList is read-only. (Inherited from ArrayList.) | |
IsSynchronized | Gets a value indicating whether access to the ArrayList is synchronized (thread safe). (Inherited from ArrayList.) | |
Item | Gets or sets the element at the specified index. (Inherited from ArrayList.) | |
SyncRoot | Gets an object that can be used to synchronize access to the ArrayList. (Inherited from ArrayList.) |
See Also