StringList

Description

The StringList class implements an object that is a dynamic array of strings.

Comment

A dynamic array of strings is an analog of the ArrayList dynamic array, each element of which keeps string value. General principles of working with dynamic array of strings are the same as with the ArrayList array. To add elements to the array, use the Add, or AddRange methods. An array may also be obtained by decomposition of a string, using any separator. To do this, use the AsString and Text properties. Sorting and various kinds of search of the elements are available in the array.

Class object properties inherited from IStringList

  Property name Brief description
AsString The AsString property determines an array as a text string using separator - {Line feed}.
Item The Item property returns the element value of a string array.
ItemLength The ItemLength property returns array element length.
Text The Text property determines the array as a text string using a separator passed as an input parameter.

Class object properties inherited from ICollection

  Property name Brief description
Count The Count property returns the number of array elements.

Class object methods inherited from IStringList

  Method name Brief description
Add The Add method adds a new element with the specified value to the end of array and returns its index.
AddRange The AddRange method adds the specified collection of elements to the end of array.
BinarySearch The BinarySearch method executes binary search of elements in array.
BinarySearchRange The BinarySearchRange method executes binary search of the element in array range.
Clear The Clear method clears an array.
Clone The Clone method creates a copy of the array.
Contains The Contains method checks if an element exists.
CopyFrom The CopyFrom method copies data from a source.
GetRange The GetRange method returns the array range according to the specified parameters.
IndexOf The IndexOf method directly searches for value.
IndexOfPos The IndexOfPos method directly searches for value starting from the specified value.
IndexOfRange The IndexOfRange method directly searches for the element in the specified range.
Insert The Insert method inserts the element into the specified position.
InsertRange The InsertRange method inserts collection of elements into target position.
LastIndexOf The LastIndexOf method reversely searches for value.
LastIndexOfPos The LastIndexOfPos method reversely searches for a value starting from the specified position.
LastIndexOfRange The LastIndexOfRange method reversely searches for the element in the specified range.
Remove The Remove method removes element with the specified value.
RemoveAt The Remove method removes element with the specified index.
RemoveRange The RemoveRange method removes element range.
Reverse The Reverse method inverts the array.
ReverseRange The ReverseRange method inverts the array range.
Sort The Sort method sorts the array in ascending order.
SortRange The SortRange method sorts the array range in ascending order.
ToArray The ToArray method converts into standard string array.

Class object methods inherited from ICollection

  Method name Brief description
CopyTo The CopyTo method copies the collection into an array.

See also:

Collections Assembly Classes