可以使用下面的代码:
- textControl1.Find("\n", 0, TXTextControl.FindOptions.NoMessageBox);
复制代码
更多可查找的特殊字符如下:
\' Single quote, needed for character literals
\" Double quote, needed for string literals
\\ Backslash
\0 Unicode character 0
\a Alert (character 7)
\b Backspace (character 8)
\f Form feed (character 12), forced page break
\n New line (character 10)
\r Carriage return (character 13)
\t Horizontal tab (character 9)
\v Vertical quote (character 11) |