Export (0) Print
Expand All
21 out of 35 rated this helpful - Rate this topic

String Members

Represents text as a series of Unicode characters.

The String type exposes the following members.

  NameDescription
Public method Supported by the .NET Compact Framework Supported by the XNA Framework String Overloaded. Initializes a new instance of the String class.
Top
  NameDescription
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Clone Returns a reference to this instance of String.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework Compare Overloaded. Compares two specified String objects and returns an integer that indicates their relationship to one another in the sort order.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework CompareOrdinal Overloaded. Compares two String objects by evaluating the numeric values of the corresponding Char objects in each string.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework CompareTo Overloaded. Compares this instance with a specified object or String and returns an integer that indicates whether this instance precedes, follows, or appears in the same position in the sort order as the specified object or String.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework Concat Overloaded. Concatenates one or more instances of String, or the String representations of the values of one or more instances of Object.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Contains Returns a value indicating whether the specified String object occurs within this string.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework Copy Creates a new instance of String with the same value as a specified String.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework CopyTo Copies a specified number of characters from a specified position in this instance to a specified position in an array of Unicode characters.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework EndsWith Overloaded. Determines whether the end of an instance of String matches a specified string.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework Equals Overloaded. Determines whether two String objects have the same value.
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework Format Overloaded. Replaces each format item in a specified string with the text equivalent of a corresponding object's value.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetEnumerator Retrieves an object that can iterate through the individual characters in this string.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetHashCode Returns the hash code for this string. (Overrides Object.GetHashCode().)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetType Gets the type of the current instance. (Inherited from Object.)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetTypeCode Returns the TypeCode for class String.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework IndexOf Overloaded. Reports the zero-based index of the first occurrence of a String, or one or more characters, within this string.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework IndexOfAny Overloaded. Reports the index of the first occurrence in this instance of any character in a specified array of Unicode characters.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Insert Returns a new string in which a specified string is inserted at a specified index position in this instance.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework Intern Retrieves the system's reference to the specified String.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework IsInterned Retrieves a reference to a specified String.
Public method IsNormalized Overloaded. Indicates whether this string is in a particular Unicode normalization form.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework IsNullOrEmpty Indicates whether the specified string is null or an Empty string.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework Join Overloaded. Concatenates a specified separator String between each element of a specified String array, yielding a single concatenated string.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework LastIndexOf Overloaded. Reports the index position of the last occurrence of a specified Unicode character or String within this instance.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework LastIndexOfAny Overloaded. Reports the index position of the last occurrence in this instance of one or more characters specified in a Unicode array.
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Normalize Overloaded. Returns a new string whose binary representation is in a particular Unicode normalization form.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework PadLeft Overloaded. Returns a new string of a specified length in which the beginning of the string is padded with spaces or a specified Unicode character.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework PadRight Overloaded. Returns a new string of a specified length in which the end of the string is padded with spaces or a specified Unicode character.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Remove Overloaded. Returns a new string in which a specified number of characters from this instance are deleted.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Replace Overloaded. Returns a new string in which all occurrences of a specified Unicode character or String in this instance are replaced with another specified Unicode character or String.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Split Overloaded. Returns a string array that contains the substrings in this instance that are delimited by elements of a specified string or Unicode character array.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework StartsWith Overloaded. Determines whether the beginning of an instance of String matches a specified string.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Substring Overloaded. Retrieves a substring from this instance.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework ToCharArray Overloaded. Copies the characters in this instance to a Unicode character array.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework ToLower Overloaded. Returns a copy of this String converted to lowercase.
Public method ToLowerInvariant Returns a copy of this String object converted to lowercase using the casing rules of the invariant culture.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework ToString Overloaded. Converts the value of this instance to a String.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework ToUpper Overloaded. Returns a copy of this String converted to uppercase.
Public method ToUpperInvariant Returns a copy of this String object converted to uppercase using the casing rules of the invariant culture.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Trim Overloaded. Returns a new string in which all leading and trailing occurrences of a set of specified characters from the current String object are removed.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework TrimEnd Removes all trailing occurrences of a set of characters specified in an array from the current String object.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework TrimStart Removes all leading occurrences of a set of characters specified in an array from the current String object.
Top
  NameDescription
Public operator Static member Supported by the .NET Compact Framework Supported by the XNA Framework Equality Determines whether two specified String objects have the same value.
Public operator Static member Supported by the .NET Compact Framework Supported by the XNA Framework Inequality Determines whether two specified String objects have different values.
Top
  NameDescription
Public Extension Method Aggregate Applies an accumulator function over a sequence. (Defined by Enumerable.)
Public Extension Method All Determines whether all elements of a sequence satisfy a condition. (Defined by Enumerable.)
Public Extension Method Any Overloaded. Determines whether any element of a sequence exists or satisfies a condition.
Public Extension Method AsEnumerable Returns the input typed as IEnumerable<T>. (Defined by Enumerable.)
Public Extension Method AsQueryable Overloaded. Converts an IEnumerable or generic IEnumerable<T> to an IQueryable or generic IQueryable<T>.
Public Extension Method Average Overloaded. Computes the average of a sequence of numeric values.
Public Extension Method Cast Converts the elements of an IEnumerable to the specified type. (Defined by Enumerable.)
Public Extension Method Concat Concatenates two sequences. (Defined by Enumerable.)
Public Extension Method Contains Overloaded. Determines whether a sequence contains a specified element.
Public Extension Method Count Overloaded. Returns the number of elements in a sequence.
Public Extension Method DefaultIfEmpty Overloaded. Returns the elements of an IEnumerable<T>, or a default valued singleton collection if the sequence is empty.
Public Extension Method Distinct Overloaded. Returns distinct elements from a sequence.
Public Extension Method ElementAt Returns the element at a specified index in a sequence. (Defined by Enumerable.)
Public Extension Method ElementAtOrDefault Returns the element at a specified index in a sequence or a default value if the index is out of range. (Defined by Enumerable.)
Public Extension Method Except Overloaded. Produces the set difference of two sequences.
Public Extension Method First Overloaded. Returns the first element of a sequence.
Public Extension Method FirstOrDefault Overloaded. Returns the first element of a sequence, or a default value if no element is found.
Public Extension Method Intersect Overloaded. Produces the set intersection of two sequences.
Public Extension Method Last Overloaded. Returns the last element of a sequence.
Public Extension Method LastOrDefault Overloaded. Returns the last element of a sequence, or a default value if no element is found.
Public Extension Method LongCount Overloaded. Returns an Int64 that represents the number of elements in a sequence.
Public Extension Method Max Overloaded. Returns the maximum value in a sequence of values.
Public Extension Method Min Overloaded. Returns the minimum value in a sequence of values.
Public Extension Method OfType Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.)
Public Extension Method Reverse Inverts the order of the elements in a sequence. (Defined by Enumerable.)
Public Extension Method SequenceEqual Overloaded. Determines whether two sequences are equal according to an equality comparer.
Public Extension Method Single Overloaded. Returns a single, specific element of a sequence of values.
Public Extension Method SingleOrDefault Overloaded. Returns a single, specific element of a sequence of values, or a default value if no such element is found.
Public Extension Method Skip Bypasses a specified number of elements in a sequence and then returns the remaining elements. (Defined by Enumerable.)
Public Extension Method SkipWhile Overloaded. Bypasses elements in a sequence as long as a specified condition is true and then returns the remaining elements.
Public Extension Method Sum Overloaded. Computes the sum of a sequence of numeric values.
Public Extension Method Take Returns a specified number of contiguous elements from the start of a sequence. (Defined by Enumerable.)
Public Extension Method TakeWhile Overloaded. Returns elements from a sequence as long as a specified condition is true, and then skips the remaining elements.
Public Extension Method ToArray Creates an array from a IEnumerable<T>. (Defined by Enumerable.)
Public Extension Method ToList Creates a List<T> from an IEnumerable<T>. (Defined by Enumerable.)
Public Extension Method Union Overloaded. Produces the set union of two sequences.
Public Extension Method Where Overloaded. Filters a sequence of values based on a predicate.
Top
  NameDescription
Public field Static member Supported by the .NET Compact Framework Supported by the XNA Framework Empty Represents the empty string. This field is read-only.
Top
  NameDescription
Public property Supported by the .NET Compact Framework Supported by the XNA Framework Chars Gets the character at a specified character position in the current String object.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework Length Gets the number of characters in the current String object.
Top
  NameDescription
Explicit interface implemetation Private method Supported by the .NET Compact Framework Supported by the XNA Framework IEnumerable<Char>.GetEnumerator Returns an enumerator that iterates through the current String object.
Explicit interface implemetation Private method Supported by the .NET Compact Framework Supported by the XNA Framework IEnumerable.GetEnumerator Returns an enumerator that iterates through the current String object.
Explicit interface implemetation Private method Supported by the .NET Compact Framework Supported by the XNA Framework IConvertible.ToBoolean Infrastructure. For a description of this member, see ToBoolean.
Explicit interface implemetation Private method Supported by the .NET Compact Framework Supported by the XNA Framework IConvertible.ToByte Infrastructure. For a description of this member, see ToByte.
Explicit interface implemetation Private method Supported by the .NET Compact Framework Supported by the XNA Framework IConvertible.ToChar Infrastructure. For a description of this member, see ToChar.
Explicit interface implemetation Private method Supported by the .NET Compact Framework Supported by the XNA Framework IConvertible.ToDateTime Infrastructure. For a description of this member, see ToDateTime.
Explicit interface implemetation Private method Supported by the .NET Compact Framework Supported by the XNA Framework IConvertible.ToDecimal Infrastructure. For a description of this member, see ToDecimal.
Explicit interface implemetation Private method Supported by the .NET Compact Framework Supported by the XNA Framework IConvertible.ToDouble Infrastructure. For a description of this member, see ToDouble.
Explicit interface implemetation Private method Supported by the .NET Compact Framework Supported by the XNA Framework IConvertible.ToInt16 Infrastructure. For a description of this member, see ToInt16.
Explicit interface implemetation Private method Supported by the .NET Compact Framework Supported by the XNA Framework IConvertible.ToInt32 Infrastructure. For a description of this member, see ToInt32.
Explicit interface implemetation Private method Supported by the .NET Compact Framework Supported by the XNA Framework IConvertible.ToInt64 Infrastructure. For a description of this member, see ToInt64.
Explicit interface implemetation Private method Supported by the .NET Compact Framework Supported by the XNA Framework IConvertible.ToSByte Infrastructure. For a description of this member, see ToSByte.
Explicit interface implemetation Private method Supported by the .NET Compact Framework Supported by the XNA Framework IConvertible.ToSingle Infrastructure. For a description of this member, see ToSingle.
Explicit interface implemetation Private method Supported by the .NET Compact Framework Supported by the XNA Framework IConvertible.ToType Infrastructure. For a description of this member, see ToType.
Explicit interface implemetation Private method Supported by the .NET Compact Framework Supported by the XNA Framework IConvertible.ToUInt16 Infrastructure. For a description of this member, see ToUInt16.
Explicit interface implemetation Private method Supported by the .NET Compact Framework Supported by the XNA Framework IConvertible.ToUInt32 Infrastructure. For a description of this member, see ToUInt32.
Explicit interface implemetation Private method Supported by the .NET Compact Framework Supported by the XNA Framework IConvertible.ToUInt64 Infrastructure. For a description of this member, see ToUInt64.
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.