Cell Attributes: Determining the attributes of a cell

Article ID: 412
Last updated: 27 Apr, 2018
Article ID: 412
Last updated: 27 Apr, 2018
Revision: 3
Views: 1624
Posted: 09 Jan, 2001
by Meltreger B.
Updated: 27 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: 412
Last updated: 27 Apr, 2018
Revision: 3
Views: 1624
Posted: 09 Jan, 2001 by Meltreger B.
Updated: 27 Apr, 2018 by Meltreger B.

Others in this category