UtilitiesCompactPath Method |
Shrinks a path string to fit within a certain number of characters, replacing segments with ellipses if needed.
Namespace: FiddlerAssembly: FiddlerCore4 (in FiddlerCore4.dll) Version: 4.6.2.0
Syntax public static string CompactPath(
string sPath,
int iCharLen
)
Public Shared Function CompactPath (
sPath As String,
iCharLen As Integer
) As String
public:
static String^ CompactPath(
String^ sPath,
int iCharLen
)
Parameters
- sPath
- Type: SystemString
The Path to compact - iCharLen
- Type: SystemInt32
Number of characters to shrink to
Return Value
Type:
StringThe compacted string, or the original string if compaction wasn't needed or failed
See Also