Clear Up
SharpKit Reference

JsString.indexOf Method (JsString, JsNumber)

Returns the character position where the first occurrence of a substring occurs within a String object.

Namespace: SharpKit.JavaScript

Class: JsString

Syntax

public JsNumber indexOf(JsString subString, JsNumber startIndex)

Parameters

subString
Type: SharpKit.JavaScript.JsString
Substring to search for within the String object.
startIndex
Type: SharpKit.JavaScript.JsNumber
Integer value specifying the index to begin searching within the String object. If omitted, searching starts at the beginning of the string.

Return Value

Type: SharpKit.JavaScript.JsNumber
An integer value indicating the beginning of the substring within the String object. If the substring is not found, a -1 is returned.
© Copyright 2005-2011 SharpKit. All rights reserved.