CHtmlEditCtrlBase::GetFontSize

Retrieves the font size for the current selection.

HRESULT GetFontSize(
   short& nSize 
) const;

Parameters

  • nSize
    The font size.

Return Value

Returns the HTML font size (1-7). Returns 0 if the selection contains multiple font sizes.

Remarks

This method sends the IDM_FONTSIZE command ID to the WebBrowser control.

Requirements

Header: afxhtml.h

See Also

Concepts

CHtmlEditCtrlBase Class

CHtmlEditCtrlBase Members

CHtmlEditCtrlBase::SetFontSize

CHtmlEditCtrlBase::GetFontFace