Cell Attributes: Determining the attributes of a cell

Article ID: 23
Last updated: 16 Apr, 2018
Article ID: 23
Last updated: 16 Apr, 2018
Revision: 3
Views: 2030
Posted: 23 Jan, 2001
by Meltreger B.
Updated: 16 Apr, 2018
by Meltreger B.

Problem


How can I determine the attributes of a cell?


Cause



Action


Call ComposeStyleRowCol() to get all attributes for a cell (filled with standard settings).

Example:

   CGXStyle style;
   ComposeStyleRowCol(nRow, nCol, &style);

If you only want to get those settings that are specific to the cell and disregard standard settings call GetStyleRowCol() instead.

Example:

 CGXStyle style;
 GetStyleRowCol(nRow, nCol, &style);

// test if the specific attribute has been changed for that cell
if (style.GetIncludeInterior()) ...
else // Cell uses the default background color

This article was:   Helpful | Not helpful
Report an issue
Article ID: 23
Last updated: 16 Apr, 2018
Revision: 3
Views: 2030
Posted: 23 Jan, 2001 by Meltreger B.
Updated: 16 Apr, 2018 by Meltreger B.

Others in this category