Click or drag to resize
StringsGetMaxLenghtString Method
Get a number of char from a string object

Namespace: ToolBoox
Assembly: ToolBoox (in ToolBoox.dll) Version: 1.1.0.0 (1.1.0.0)
Syntax
public static string GetMaxLenghtString(
	string str,
	int maxlenght,
	bool usepoints
)

Parameters

str
Type: SystemString
Strign object to get
maxlenght
Type: SystemInt32
Maximum characters to get
usepoints
Type: SystemBoolean
True if you want to add "..." at the end of the string, false otherwise

Return Value

Type: String
The return string object with defined lenght
See Also