MsgUtils.ClipString(String, Int32, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Clip a string to a given length, starting at a particular offset, returning the clipped string with ellipses representing the removed parts
public static string ClipString (string s, int maxStringLength, int clipStart);
static member ClipString : string * int * int -> string
Parameters
- s
- String
The string to be clipped
- maxStringLength
- Int32
The maximum permitted length of the result string
- clipStart
- Int32
The point at which to start clipping
Returns
The clipped string