StringUtil.Mid Method (String, Int32, Int32)
Gets the middle part of a string.
[Visual Basic]
Overloads Public Shared Function Mid( _
ByVal
text As
String, _
ByVal
start As
Integer, _
ByVal
length As
Integer _
) As
String
Parameters
-
text
- A string.
-
start
- The starting index into the string.
-
length
- The number of returned characters
Return Value
The rightmost part of the string starting at the start position.
Remarks
Example
string result = StringUtil.Mid("Hello world", 6, 3); / "wor"
See Also
StringUtil Class | Sitecore Namespace | StringUtil.Mid Overload List | Left | Right