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

CodePudding user response:

reference 1st floor lindexi_gd response:
a method is covered by 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 in the same hierarchy control way for painting the background of the rectangular


Not quite understand, can say more specific?

CodePudding user response:

RicheditControl. ActiveView. BackColor=System. Drawing. Color. Brown;

If this is
  •  Tags:  
  • C #
  • Related