class StringCollection

in global :: System . Collections . Specialized

Represents a collection of strings.


public int Add( string value )

Adds a string to the end of the .

  • value The string to add to the end of the . The value can be .
  • Returns The zero-based index at which the new element is inserted.

public void AddRange( string[] value )

Copies the elements of a string array to the end of the .

  • value An array of strings to add to the end of the . The array itself can not be but it can contain elements that are .

public bool Contains( string value )

Determines whether the specified string is in the .

  • value The string to locate in the . The value can be .
  • Returns if is found in the ; otherwise, .

public void CopyTo( string[] array, int index )

Copies the entire values to a one-dimensional array of strings, starting at the specified index of the target array.

  • array The one-dimensional array of strings that is the destination of the elements copied from . The must have zero-based indexing.
  • index The zero-based index in at which copying begins.

public int Count { get; }

Gets the number of strings contained in the .

  • Returns The number of strings contained in the .

public int IndexOf( string value )

Searches for the specified string and returns the zero-based index of the first occurrence within the .

  • value The string to locate. The value can be .
  • Returns The zero-based index of the first occurrence of in the , if found; otherwise, -1.

public void Insert( int index, string value )

Inserts a string into the at the specified index.

  • index The zero-based index at which is inserted.
  • value The string to insert. The value can be .

public bool IsReadOnly { get; }

Gets a value indicating whether the is read-only.

  • Returns This property always returns .

public bool IsSynchronized { get; }

Gets a value indicating whether access to the is synchronized (thread safe).

  • Returns This property always returns .

public void Remove( string value )

Removes the first occurrence of a specific string from the .

  • value The string to remove from the . The value can be .

public void RemoveAt( int index )

Removes the string at the specified index of the .

  • index The zero-based index of the string to remove.

public object SyncRoot { get; }

Gets an object that can be used to synchronize access to the .

  • Returns An object that can be used to synchronize access to the .

public bool Equals( object obj )

😔 No documentation found.

public string ToString( )

😔 No documentation found.

public Type GetType( )

😔 No documentation found.

public StringCollection( )

😔 No documentation found.

public StringEnumerator GetEnumerator( )

😔 No documentation found.

public void Clear( )

😔 No documentation found.

public int GetHashCode( )

😔 No documentation found.

public string Item { get; set; }

😔 No documentation found.