We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Highlight an arbitrary line?

Can anyone tell me whether in EE (almost wrote OE) its possible to highlight (change the background color) an individual row? Many thanks, Baddabing

3 Replies

BA Baddabing October 23, 2002 02:21 AM

Baddabing, The following functions have been added to EditControl: /// Tests if the specified line is highlighted. public bool IsHighlighted(int ln); /// Highlights the specified line. public void AddHighlight(int ln); /// Highlights the specified line range. public void AddHighlight(int lnStart, int lnEnd); /// Removes highlight for the specified line. public void RemoveHighlight(int ln); /// Removes highlight for the specified line range. public void RemoveHighlight(int lnStart, int lnEnd); /// Removes all highlight for lines. public void RemoveAllHighlight(); Functions for setting the background color of an individual row will be available in the near future. A support engineer will contact you regarding the updated version of code. Thanks for choosing Essential Edit. Syncfusion Technical Support > Can anyone tell me whether in EE (almost wrote OE) its possible to highlight (change the background color) an individual row? > > Many thanks, > Baddabing


BA Baddabing October 23, 2002 05:05 PM

Thanks for the response, but I don't quite understand. You mention that "highlight" functionality has been added, but changing the background color will come later. What do you mean by "highlight"? I.E. what is the visible difference between a highlighted row and one not highlighted? Baddabing


BA Baddabing October 24, 2002 03:17 AM

Baddabing, A highlighted line will have the same foreground color and background color as a selected line. The follow functions are now available for changing the background color of an individual line: /// Tests if the specified line has a custom background color. public bool IsCustomBackColor(int ln); /// Sets the background color of the specified line to be a custom color. public void SetCustomBackColor(int ln, Color clr); /// Sets the background color of the specified line range to be a custom color. public void SetCustomBackColor(int lnStart, int lnEnd, Color clr); /// Removes the custom background color for the specified line. public void RemoveCustomBackColor(int ln); /// Removes custom background colors for the specified line range. public void RemoveCustomBackColor(int lnStart, int lnEnd); /// Removes all the custom background colors for lines. public void RemoveAllCustomBackColor(); Please log an incident and a support engineer will send you the updated code. Thanks for choosing Essential Suite. Syncfusion Technical Support > Thanks for the response, but I don't quite understand. > > You mention that "highlight" functionality has been added, but changing the background color will come later. > > What do you mean by "highlight"? I.E. what is the visible difference between a highlighted row and one not highlighted? > > Baddabing

Loader.
Live Chat Icon For mobile
Up arrow icon