CGXStyle& SetFont(const CGXFont& font, GXModifyType mt = gxOverride);
font
Reference to a CGXFont object.
mt
gxExclude for resetting attributes.
Returns the this pointer.
Initializes the font object.
The specified font object is copied to the internal font object. If you want to apply another font on the internal font object, you should use ChangeStyle.
Note: When you change the font for the standard style in the grid, the row heights and column widths will grow or shrink proportionally with the font size. If you need to know the new row heights and column widths immediately after changing the font size, you should call UpdateFontMetrics.
CGXFont CGXGridCore::UpdateFontMetrics
Class Overview | Class Members