Edit

Share via


MsgUtils.ClipString(String, Int32, Int32) Method

Definition

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

Applies to