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.
Unfortunately, activation email could not send to your email. Please try again.

Highlight an arbitrary line?

Thread ID:

Created:

Updated:

Platform:

Replies:

1365 Oct 22,2002 05:46 AM Oct 24,2002 03:17 AM Windows Forms 3
loading
Tags: EditControl
Baddabing
Asked On October 22, 2002 05:46 AM

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

Baddabing
Replied On 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

Baddabing
Replied On 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

Baddabing
Replied On 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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;