 | StringsGetMaxLenghtString Method |
Get a number of char from a string object
Namespace: ToolBooxAssembly: ToolBoox (in ToolBoox.dll) Version: 1.1.0.0 (1.1.0.0)
Syntaxpublic static string GetMaxLenghtString(
string str,
int maxlenght,
bool usepoints
)
Public Shared Function GetMaxLenghtString (
str As String,
maxlenght As Integer,
usepoints As Boolean
) As String
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:
StringThe return string object with defined lenght
See Also