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

Reference

CHtmlEditCtrlBase Class

CHtmlEditCtrlBase::SetFontSize

CHtmlEditCtrlBase::GetFontFace

Other Resources

CHtmlEditCtrlBase Members