Summary
Clip a string to a given length, starting at a particular offset, returning the clipped
string with ellipses representing the removed parts
- Namespace
- TCLite
.Constraints - Containing Type
- MsgUtils
Syntax
public static string ClipString(string s, int maxStringLength, int clipStart)
Parameters
Name | Type | Description |
---|---|---|
s | string | The string to be clipped |
maxStringLength | int | The maximum permitted length of the result string |
clipStart | int | The point at which to start clipping |
Return Value
Type | Description |
---|---|
string | The clipped string |