Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

StringPrototype Methods

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

The StringPrototype type exposes the following members.

  NameDescription
Public method AddField Adds the specified field to the object. (Inherited from JSObject.)
Public method Static member anchor Converts the specified object to text enclosed in anchor tags, and gives the anchor element the specified name attribute.
Public method Static member big Converts the specified object to text enclosed in bigger text markup tags.
Public method Static member blink Converts the specified object to text enclosed in blink markup tags.
Public method Static member bold Converts the specified object to text enclosed in bold text markup tags.
Public method Static member charAt Returns the character at the specified position in the specified object.
Public method Static member charCodeAt Returns the ASCII code of the character at the specified position in the specified object.
Public method Static member concat Appends the specified arguments to the specified object.
Public method Equals Determines whether this string and the specified string have the same value. (Inherited from StringObject.)
Protected method 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 fixed Converts the specified object to text enclosed in fixed-width text markup tags.
Public method Static member fontcolor Converts the specified object to text enclosed in font tags, and gives the element the specified color attribute.
Public method Static member fontsize Converts the specified object to text enclosed in font tags, and gives the element the specified size attribute.
Public method GetField Gets a field that has the specified name. (Inherited from ScriptObject.)
Public method GetFields Gets an array of FieldInfo objects that correspond to all fields of the current script object. (Inherited from ScriptObject.)
Public method GetHashCode Returns the hash code for this string. (Inherited from StringObject.)
Public method GetMember Gets an array of MemberInfo objects that correspond to all members that match the specified name. (Inherited from JSObject.)
Public method GetMembers Gets an array of MemberInfo objects that correspond to all members of the current script object. (Inherited from JSObject.)
Public method GetMethod Overloaded. Gets a method that has a specified name.
Public method GetMethods Gets an array of MethodInfo objects that correspond to all methods of the current script object. (Inherited from ScriptObject.)
Public method GetParent Gets a reference to the parent object. (Inherited from ScriptObject.)
Public method GetProperties Gets an array of PropertyInfo objects that correspond to all properties of the current script object. (Inherited from ScriptObject.)
Public method GetProperty Overloaded. Gets a property that has a specified name.
Public method GetType Returns String or StringObject. (Inherited from StringObject.)
Public method Static member indexOf Searches for the first occurrence of the specified string in the specified object, starting from the specified character position.
Public method InvokeMember Invokes the specified member. (Inherited from ScriptObject.)
Public method Static member italics Converts the specified object to text enclosed in italic text markup tags.
Public method Static member lastIndexOf Searches for the last occurrence of the specified string in the specified object, starting from the specified character position.
Public method Static member link Converts the specified object to text enclosed in anchor tags, and gives the anchor element the link target attribute that is specified.
Public method Static member localeCompare Compares the two specified strings and returns an integer that indicates the lexical relationship between them.
Public method Static member match Runs a search for the specified regular expression pattern on the specified object.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Static member replace Runs a search for the specified regular expression pattern on the first specified object, and replaces any matches with the third specified object.
Public method Static member search Runs a search for the specified regular expression pattern on the specified object.
Public method SetMemberValue2 Sets the value of a field that was dynamically added to the object and stored in field_table. (Inherited from JSObject.)
Public method Static member slice Creates a new string that contains the specified consecutive characters from the specified string.
Public method Static member small Converts the specified object to text enclosed in smaller text markup tags.
Public method Static member split Returns an array that contains the substrings in the specified object that are delimited by the specified characters. The number of substrings in the array is constrained by the specified limit.
Public method Static member strike Converts the specified object to text enclosed in strikethrough markup tags.
Public method Static member sub Converts the specified object to text enclosed in subscript markup tags.
Public method Static member substr Creates a new string that contains the specified number of consecutive characters from the specified string, starting from the specified character position. Use substring instead, if you can.
Public method Static member substring Creates a new string that contains the specified consecutive characters from the specified string.
Public method Static member sup Converts the specified object to text enclosed in superscript markup tags.
Public method Static member toLocaleLowerCase Returns a copy of the specified string converted to lowercase, based on the casing rules of CurrentUICulture.
Public method Static member toLocaleUpperCase Returns a copy of the specified string converted to uppercase, based on the casing rules of CurrentUICulture.
Public method Static member toLowerCase Returns a copy of the specified string converted to lowercase, based on the casing rules of InvariantCulture.
Public method Static member toString Creates a string representation of the specified object.
Public method ToString Returns a string that represents the current object. (Inherited from JSObject.)
Public method Static member toUpperCase Returns a copy of the specified string converted to uppercase, based on the casing rules of InvariantCulture.
Public method Static member valueOf Returns the value of the specified object.
Top
  NameDescription
Explicit interface implemetation Private method IExpando.AddMethod Adds the specified method to the object. IExpando.AddMethod is not implemented in JScript. (Inherited from JSObject.)
Explicit interface implemetation Private method IExpando.AddProperty Adds the specified property to the object. This method is not implemented in JScript. (Inherited from JSObject.)
Explicit interface implemetation Private method IEnumerable.GetEnumerator Returns an enumerator that iterates through the members of the object. (Inherited from JSObject.)
Explicit interface implemetation Private method IExpando.RemoveMember Removes the specified member from the object. (Inherited from JSObject.)
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.