Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to select a current line in the RichEditControl

$
0
0

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


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>