Bridge

String..::..Slice Method (Int32)

The slice() method extracts a section of a string and returns a new string.

Namespace:  System
Assembly:  Bridge (in Bridge.dll)

Syntax


public string Slice(
	int beginSlice
)
Public Function Slice ( _
	beginSlice As Integer _
) As String
public:
String^ Slice(
	int^ beginSlice
)

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).

Return Value