<< Return to Main Index

< Return to Class Index

CGXStyle::SetFont

CGXStyle& SetFont(const CGXFont& font, GXModifyType mt = gxOverride);

font

Reference to a CGXFont object.

mt

gxExclude for resetting attributes.

Return Value

Returns the this pointer.

Remarks

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.

See Also

CGXFont CGXGridCore::UpdateFontMetrics

CGXStyle

Class Overview | Class Members