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 個の連続する文字を含む新しい文字列。

属性

適用対象

こちらもご覧ください