String..::..Slice Method (Int32, Int32)
The slice() method extracts a section of a string and returns a new string.
Namespace:
System
Assembly:
Bridge (in Bridge.dll)
Syntax
Parameters
- beginSlice
- Type: System..::..Int32
The zero-based index at which to begin extraction. If negative, it is treated as (sourceLength-beginSlice) where sourceLength is the length of the string (for example, if beginSlice is -3 it is treated as sourceLength-3).
- endSlice
- Type: System..::..Int32
The zero-based index at which to end extraction. If omitted, slice extracts to the end of the string. If negative, it is treated as (sourceLength-endSlice) where sourceLength is the length of the string.