UtilitiesEllipsizeIfNeeded Method |
Ensures that the target string is iMaxLength or fewer characters, appending ... if truncation occurred
Namespace: FiddlerAssembly: FiddlerCore4 (in FiddlerCore4.dll) Version: 4.6.2.0
Syntax public static string EllipsizeIfNeeded(
string sString,
int iMaxLength
)
Public Shared Function EllipsizeIfNeeded (
sString As String,
iMaxLength As Integer
) As String
public:
static String^ EllipsizeIfNeeded(
String^ sString,
int iMaxLength
)
Parameters
- sString
- Type: SystemString
The string to trim from - iMaxLength
- Type: SystemInt32
The maximum number of characters to return
Return Value
Type:
StringThe string, or up to iMaxLength-1 characters from the "Head" of the string, with \u2026 appeneded.
See Also