StringUtils.Ellipsis 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.
Overloads
Ellipsis(String, Int32) |
Truncate string with ... |
Ellipsis(StringBuilder, Int32) |
Truncate stringbuilder string with ... |
Ellipsis(String, Int32)
Truncate string with ...
public static string Ellipsis (string text, int length);
static member Ellipsis : string * int -> string
Public Shared Function Ellipsis (text As String, length As Integer) As String
Parameters
- text
- String
text.
- length
- Int32
length to truncate text.
Returns
string length + ...
Applies to
Ellipsis(StringBuilder, Int32)
Truncate stringbuilder string with ...
public static System.Text.StringBuilder Ellipsis (System.Text.StringBuilder sb, int length);
static member Ellipsis : System.Text.StringBuilder * int -> System.Text.StringBuilder
Public Shared Function Ellipsis (sb As StringBuilder, length As Integer) As StringBuilder
Parameters
stringbuilder which will be truncated.
- length
- Int32
length to truncate text.
Returns
original stringbuilder modified.