StringPrototype StringPrototype StringPrototype StringPrototype Class

Definition

Provides static methods and properties for StringObject objects. All methods of this class are called by passing in a reference to the object that is requesting access to the method. This class belongs to the built-in object model category.

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

public ref class StringPrototype : Microsoft::JScript::StringObject
public class StringPrototype : Microsoft.JScript.StringObject
type StringPrototype = class
    inherit StringObject
Public Class StringPrototype
Inherits StringObject
Inheritance
Derived

Properties

constructor constructor constructor constructor

Gets a reference to a prototype-based object that is using this prototype.

Item[Double] Item[Double] Item[Double] Item[Double]

Gets or sets a member of the script object that is designated by the specified Double index value.

(Inherited from ScriptObject)
Item[Int32] Item[Int32] Item[Int32] Item[Int32]

Gets or sets a member of the script object that is designated by the specified Int32 index value.

(Inherited from ScriptObject)
Item[Object[]] Item[Object[]] Item[Object[]] Item[Object[]]

Gets or sets a member of the script object that is designated by the specified name, Double index value, or Int32 index value.

(Inherited from ScriptObject)
Item[String] Item[String] Item[String] Item[String]

Gets or sets a member of the script object that is designated by the specified name.

(Inherited from ScriptObject)
length length length length

Gets the number of characters in the string.

(Inherited from StringObject)
UnderlyingSystemType UnderlyingSystemType UnderlyingSystemType UnderlyingSystemType

Gets the type of the script object.

(Inherited from ScriptObject)

Methods

AddField(String) AddField(String) AddField(String) AddField(String)

Adds the specified field to the object.

(Inherited from JSObject)
anchor(Object, Object) anchor(Object, Object) anchor(Object, Object) anchor(Object, Object)

Converts the specified object to text enclosed in anchor tags, and gives the anchor element the specified name attribute.

big(Object) big(Object) big(Object) big(Object)

Converts the specified object to text enclosed in bigger text markup tags.

blink(Object) blink(Object) blink(Object) blink(Object)

Converts the specified object to text enclosed in blink markup tags.

bold(Object) bold(Object) bold(Object) bold(Object)

Converts the specified object to text enclosed in bold text markup tags.

charAt(Object, Double) charAt(Object, Double) charAt(Object, Double) charAt(Object, Double)

Returns the character at the specified position in the specified object.

charCodeAt(Object, Double) charCodeAt(Object, Double) charCodeAt(Object, Double) charCodeAt(Object, Double)

Returns the ASCII code of the character at the specified position in the specified object.

concat(Object, Object[]) concat(Object, Object[]) concat(Object, Object[]) concat(Object, Object[])

Appends the specified arguments to the specified object.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether this string and the specified string have the same value.

(Inherited from StringObject)
fixed(Object) fixed(Object) fixed(Object) fixed(Object)

Converts the specified object to text enclosed in fixed-width text markup tags.

fontcolor(Object, Object) fontcolor(Object, Object) fontcolor(Object, Object) fontcolor(Object, Object)

Converts the specified object to text enclosed in font tags, and gives the element the specified color attribute.

fontsize(Object, Object) fontsize(Object, Object) fontsize(Object, Object) fontsize(Object, Object)

Converts the specified object to text enclosed in font tags, and gives the element the specified size attribute.

GetField(String, BindingFlags) GetField(String, BindingFlags) GetField(String, BindingFlags) GetField(String, BindingFlags)

Gets a field that has the specified name.

(Inherited from ScriptObject)
GetFields(BindingFlags) GetFields(BindingFlags) GetFields(BindingFlags) GetFields(BindingFlags)

Gets an array of FieldInfo objects that correspond to all fields of the current script object.

(Inherited from ScriptObject)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Returns the hash code for this string.

(Inherited from StringObject)
GetMember(String, BindingFlags) GetMember(String, BindingFlags) GetMember(String, BindingFlags) GetMember(String, BindingFlags)

Gets an array of MemberInfo objects that correspond to all members that match the specified name.

(Inherited from JSObject)
GetMembers(BindingFlags) GetMembers(BindingFlags) GetMembers(BindingFlags) GetMembers(BindingFlags)

Gets an array of MemberInfo objects that correspond to all members of the current script object.

(Inherited from JSObject)
GetMethod(String, BindingFlags) GetMethod(String, BindingFlags) GetMethod(String, BindingFlags) GetMethod(String, BindingFlags)

Gets a method that has the specified name.

(Inherited from ScriptObject)
GetMethod(String, BindingFlags, Binder, Type[], ParameterModifier[]) GetMethod(String, BindingFlags, Binder, Type[], ParameterModifier[]) GetMethod(String, BindingFlags, Binder, Type[], ParameterModifier[]) GetMethod(String, BindingFlags, Binder, Type[], ParameterModifier[])

Gets a method that has the specified name by using the specified selection criteria.

(Inherited from ScriptObject)
GetMethods(BindingFlags) GetMethods(BindingFlags) GetMethods(BindingFlags) GetMethods(BindingFlags)

Gets an array of MethodInfo objects that correspond to all methods of the current script object.

(Inherited from ScriptObject)
GetParent() GetParent() GetParent() GetParent()

Gets a reference to the parent object.

(Inherited from ScriptObject)
GetProperties(BindingFlags) GetProperties(BindingFlags) GetProperties(BindingFlags) GetProperties(BindingFlags)

Gets an array of PropertyInfo objects that correspond to all properties of the current script object.

(Inherited from ScriptObject)
GetProperty(String, BindingFlags) GetProperty(String, BindingFlags) GetProperty(String, BindingFlags) GetProperty(String, BindingFlags)

Gets a property that has the specified name.

(Inherited from ScriptObject)
GetProperty(String, BindingFlags, Binder, Type, Type[], ParameterModifier[]) GetProperty(String, BindingFlags, Binder, Type, Type[], ParameterModifier[]) GetProperty(String, BindingFlags, Binder, Type, Type[], ParameterModifier[]) GetProperty(String, BindingFlags, Binder, Type, Type[], ParameterModifier[])

Gets a property that has the specified name by using the specified selection criteria.

(Inherited from ScriptObject)
GetType() GetType() GetType() GetType()

Returns String or StringObject.

(Inherited from StringObject)
indexOf(Object, Object, Double) indexOf(Object, Object, Double) indexOf(Object, Object, Double) indexOf(Object, Object, Double)

Searches for the first occurrence of the specified string in the specified object, starting from the specified character position.

InvokeMember(String, BindingFlags, Binder, Object, Object[], ParameterModifier[], CultureInfo, String[]) InvokeMember(String, BindingFlags, Binder, Object, Object[], ParameterModifier[], CultureInfo, String[]) InvokeMember(String, BindingFlags, Binder, Object, Object[], ParameterModifier[], CultureInfo, String[]) InvokeMember(String, BindingFlags, Binder, Object, Object[], ParameterModifier[], CultureInfo, String[])

Invokes the specified member.

(Inherited from ScriptObject)
italics(Object) italics(Object) italics(Object) italics(Object)

Converts the specified object to text enclosed in italic text markup tags.

lastIndexOf(Object, Object, Double) lastIndexOf(Object, Object, Double) lastIndexOf(Object, Object, Double) lastIndexOf(Object, Object, Double)

Searches for the last occurrence of the specified string in the specified object, starting from the specified character position.

link(Object, Object) link(Object, Object) link(Object, Object) link(Object, Object)

Converts the specified object to text enclosed in anchor tags, and gives the anchor element the link target attribute that is specified.

localeCompare(Object, Object) localeCompare(Object, Object) localeCompare(Object, Object) localeCompare(Object, Object)

Compares the two specified strings and returns an integer that indicates the lexical relationship between them.

match(Object, VsaEngine, Object) match(Object, VsaEngine, Object) match(Object, VsaEngine, Object) match(Object, VsaEngine, Object)

Runs a search for the specified regular expression pattern on the specified object.

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
replace(Object, Object, Object) replace(Object, Object, Object) replace(Object, Object, Object) replace(Object, Object, Object)

Runs a search for the specified regular expression pattern on the first specified object, and replaces any matches with the third specified object.

search(Object, VsaEngine, Object) search(Object, VsaEngine, Object) search(Object, VsaEngine, Object) search(Object, VsaEngine, Object)

Runs a search for the specified regular expression pattern on the specified object.

SetMemberValue2(String, Object) SetMemberValue2(String, Object) SetMemberValue2(String, Object) SetMemberValue2(String, Object)

Sets the value of a field that was dynamically added to the object and stored in field_table.

(Inherited from JSObject)
slice(Object, Double, Object) slice(Object, Double, Object) slice(Object, Double, Object) slice(Object, Double, Object)

Creates a new string that contains the specified consecutive characters from the specified string.

small(Object) small(Object) small(Object) small(Object)

Converts the specified object to text enclosed in smaller text markup tags.

split(Object, VsaEngine, Object, Object) split(Object, VsaEngine, Object, Object) split(Object, VsaEngine, Object, Object) split(Object, VsaEngine, Object, Object)

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.

strike(Object) strike(Object) strike(Object) strike(Object)

Converts the specified object to text enclosed in strikethrough markup tags.

sub(Object) sub(Object) sub(Object) sub(Object)

Converts the specified object to text enclosed in subscript markup tags.

substr(Object, Double, Object) substr(Object, Double, Object) substr(Object, Double, Object) substr(Object, Double, Object)

Creates a new string that contains the specified number of consecutive characters from the specified string, starting from the specified character position. Use substring(Object, Double, Object) instead, if you can.

substring(Object, Double, Object) substring(Object, Double, Object) substring(Object, Double, Object) substring(Object, Double, Object)

Creates a new string that contains the specified consecutive characters from the specified string.

sup(Object) sup(Object) sup(Object) sup(Object)

Converts the specified object to text enclosed in superscript markup tags.

toLocaleLowerCase(Object) toLocaleLowerCase(Object) toLocaleLowerCase(Object) toLocaleLowerCase(Object)

Returns a copy of the specified string converted to lowercase, based on the casing rules of CurrentUICulture.

toLocaleUpperCase(Object) toLocaleUpperCase(Object) toLocaleUpperCase(Object) toLocaleUpperCase(Object)

Returns a copy of the specified string converted to uppercase, based on the casing rules of CurrentUICulture.

toLowerCase(Object) toLowerCase(Object) toLowerCase(Object) toLowerCase(Object)

Returns a copy of the specified string converted to lowercase, based on the casing rules of InvariantCulture.

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from JSObject)
toString(Object) toString(Object) toString(Object) toString(Object)

Creates a string representation of the specified object.

toUpperCase(Object) toUpperCase(Object) toUpperCase(Object) toUpperCase(Object)

Returns a copy of the specified string converted to uppercase, based on the casing rules of InvariantCulture.

valueOf(Object) valueOf(Object) valueOf(Object) valueOf(Object)

Returns the value of the specified object.

Fields

engine engine engine engine

Stores a reference to the scripting engine.

(Inherited from ScriptObject)
field_table field_table field_table field_table

Stores a list of fields that are dynamically added and removed from the object.

(Inherited from JSObject)
parent parent parent parent

Stores a reference to the parent object.

(Inherited from ScriptObject)

Explicit Interface Implementations

IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator()

Returns an enumerator that iterates through the members of the object.

(Inherited from JSObject)
IExpando.AddMethod(String, Delegate) IExpando.AddMethod(String, Delegate) IExpando.AddMethod(String, Delegate) IExpando.AddMethod(String, Delegate)

Adds the specified method to the object. IExpando.AddMethod(String, Delegate) is not implemented in JScript.

(Inherited from JSObject)
IExpando.AddProperty(String) IExpando.AddProperty(String) IExpando.AddProperty(String) IExpando.AddProperty(String)

Adds the specified property to the object. This method is not implemented in JScript.

(Inherited from JSObject)
IExpando.RemoveMember(MemberInfo) IExpando.RemoveMember(MemberInfo) IExpando.RemoveMember(MemberInfo) IExpando.RemoveMember(MemberInfo)

Removes the specified member from the object.

(Inherited from JSObject)

Extension Methods

Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable)

Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable)

Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable)

Enables parallelization of a query.

AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable)

Converts an IEnumerable to an IQueryable.

Applies to

See also