双击仅选择标签控件的文本

问题描述:

我有一个带有一些文本的标签控件.如果我选择文本.最后选择空格.我想避免这种情况.我只想选择末尾没有空格的文本.

请帮助

Hi i have a label control with some text. if i select the text . it is getting selected with whitespace at the end. i want to avoid that. i want to select text only with no white space at the end.

please help

使用Trim函数.


请参阅此

System.Trim [
see this

System.Trim[^]