共用方式為


CHtmlEditCtrlBase::SetBlockFormat

Sets the current block format tag.

HRESULT SetBlockFormat(
   LPCTSTR szFormat 
) const;

Parameters

  • szFormat
    The format tag.

Return Value

Returns S_OK on success, or an error HRESULT on failure.

Remarks

This method sends the IDM_BLOCKFMT_command ID to the WebBrowser control.

Requirements

Header: afxhtml.h

See Also

Concepts

CHtmlEditCtrlBase Class

CHtmlEditCtrlBase Members

CHtmlEditCtrlBase::GetBlockFormat