This example illustrates the use of the StartOfLineCommand and EndOfLineCommand that allows you to determine start and end positions of the current line. It is important to distinguish line and paragraph terms because they are different in the context of the RichEditControl. Paragraph represents a single paragraph in a document. Paragraphs are delimited by the \r\n character pair. As for the line, it is a range of non-breakable text (i.e. a range of text that is not wrapped to the next row). There is no special API for lines and you should use the aforementioned commands to work with them.
Question Comments
Added By: Zina Ge at: 1/22/2016 12:51:34 AM
It works.Thank you