Home > Net > DevExpress richeditControl cursor in the row to highlight the entire line effect
DevExpress richeditControl cursor in the row to highlight the entire line effect
Time:09-20
Want to make a script debugging environment operation, among them in order to realize the entire line cursor line highlighting, similar to the following effect, the cursor line in the picture below such effect, the entire line blue background in DevExpress richeditControl, can achieve? How to do? The great god please help, thanks
CodePudding user response:
One way is by covering a layer of transparent background
Try by [Document CaretPosition Property | Office File API | DevExpress Documentation] (https://docs.devexpress.com/OfficeFileAPI/DevExpress.XtraRichEdit.API.Native.Document.CaretPosition) after conversion control coordinates, and then draw a rectangle in the same hierarchy control background