Click or drag to resize
UtilitiesCompactPath Method
Shrinks a path string to fit within a certain number of characters, replacing segments with ellipses if needed.

Namespace: Fiddler
Assembly: FiddlerCore4 (in FiddlerCore4.dll) Version: 4.6.2.0
Syntax
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: String
The compacted string, or the original string if compaction wasn't needed or failed
See Also