StringBuilder.Substring Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Substring(Int32, Int32) |
Returns the String value of the subsequence from the |
Substring(Int32) |
Returns the String value of the subsequence from the |
Substring(Int32, Int32)
Returns the String value of the subsequence from the start
index
to the end
index.
[Android.Runtime.Register("substring", "(II)Ljava/lang/String;", "")]
public override string Substring (int start, int end);
[<Android.Runtime.Register("substring", "(II)Ljava/lang/String;", "")>]
override this.Substring : int * int -> string
Parameters
- start
- Int32
the inclusive start index to begin the subsequence.
- end
- Int32
the exclusive end index to end the subsequence.
Returns
- Attributes
Exceptions
if start
is negative, greater than end
or if
end
is greater than the current Length().
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
Substring(Int32)
Returns the String value of the subsequence from the start
index
to the current end.
[Android.Runtime.Register("substring", "(I)Ljava/lang/String;", "")]
public override string Substring (int start);
[<Android.Runtime.Register("substring", "(I)Ljava/lang/String;", "")>]
override this.Substring : int -> string
Parameters
- start
- Int32
the inclusive start index to begin the subsequence.
Returns
- Attributes
Exceptions
if start
is negative or greater than the current
Length().
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.