StringsSubstring(String, Int32, Int32) Method

Get a substring from the indicated position of a text and with the indicated length.

Definition

Namespace: Aliquo.Core
Assembly: Aliquo.Core (in Aliquo.Core.dll) Version: 5.0.9179.22651
C#
public static string Substring(
	string text,
	int startIndex,
	int length
)

Parameters

text  String
Text used to get the substring.
startIndex  Int32
Starting index to get the substring.
length  Int32
Length of the substring to obtain.

Return Value

String
String with the substring from the start position and with the indicated length up to the maximum length of the text.

Empty if the text is empty or the index exceeds the length of the text.

See Also