struct CGXPen

The CGXPen class is a wrapper for the LOGPEN structure. CGXPen can be written to the application profile and loaded from it. Serialization is also supported. A CGXPen object offers an include-bit to turn on/off the pen or border.

Normally, a CGXPen object is used to specify a border of a cell:

   SetStyleRange(
      CGXRange(2,2),
      CGXStyle()
         .SetBorder(gxBorderLeft,
            CGXPen().SetStyle(PS_DOTTED).SetColor(RGB(255,0,0) )
      );

Two provided inline methods enable you to serialize a CGXPen object with the << and >> operators:

   ar << pen
   -- Or --
   ar >> pen;

#include <gxall.h>

See Also

 CGXStyle

CGXPen

 Class Members