StringPrototype.substr(Object, Double, Object) メソッド

定義

指定した文字位置から開始して、指定した文字列から指定した数の連続する文字を含む新しい文字列を作成します。 可能な場合は、代わりに substring(Object, Double, Object) を使用してください。

この API は製品インフラストラクチャをサポートします。コードから直接使用するものではありません。

public:
 static System::String ^ substr(System::Object ^ thisob, double start, System::Object ^ count);
[Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject, Microsoft.JScript.JSBuiltin.String_substr)]
[Microsoft.JScript.NotRecommended("substr")]
public static string substr(object thisob, double start, object count);
[<Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject, Microsoft.JScript.JSBuiltin.String_substr)>]
[<Microsoft.JScript.NotRecommended("substr")>]
static member substr : obj * double * obj -> string
Public Shared Function substr (thisob As Object, start As Double, count As Object) As String

パラメーター

thisob
Object

このメソッドが処理するオブジェクト。

start
Double

取得する最初の連続する文字。

count
Object

取得する文字数。

返品

countから始まるstart連続する文字を含む新しい文字列。

属性

適用対象

こちらもご覧ください