StringExtrasTruncate Method |
Namespace: ANDREICSLIB.ClassExtrasAssembly: ANDREICSLIB (in ANDREICSLIB.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic static string Truncate(
string instr,
int maxlen,
string trucatedend = "..."
)
Public Shared Function Truncate (
instr As String,
maxlen As Integer,
Optional trucatedend As String = "..."
) As String
public:
static String^ Truncate(
String^ instr,
int maxlen,
String^ trucatedend = L"..."
)
static member Truncate :
instr : string *
maxlen : int *
?trucatedend : string
(* Defaults:
let _trucatedend = defaultArg trucatedend "..."
*)
-> string
Parameters
- instr
- Type: SystemString
- maxlen
- Type: SystemInt32
- trucatedend (Optional)
- Type: SystemString
Return Value
Type:
String
See Also