StringExtrasApplyTrim Method |
Trim a string of a certain number of chars, either from the start or the end
Namespace: ANDREICSLIB.ClassExtrasAssembly: ANDREICSLIB (in ANDREICSLIB.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic static string ApplyTrim(
string origString,
bool isFront,
int length,
int relativeStart = 0
)
Public Shared Function ApplyTrim (
origString As String,
isFront As Boolean,
length As Integer,
Optional relativeStart As Integer = 0
) As String
public:
static String^ ApplyTrim(
String^ origString,
bool isFront,
int length,
int relativeStart = 0
)
static member ApplyTrim :
origString : string *
isFront : bool *
length : int *
?relativeStart : int
(* Defaults:
let _relativeStart = defaultArg relativeStart 0
*)
-> string
Parameters
- origString
- Type: SystemString
- isFront
- Type: SystemBoolean
- length
- Type: SystemInt32
- relativeStart (Optional)
- Type: SystemInt32
front=true, start=relativestart. front=end, start=end-length+relativestart
Return Value
Type:
String
See Also