共用方式為


CHtmlEditCtrlBase::SetBlockFormat

設定目前的格式標記。

HRESULT SetBlockFormat(
   LPCTSTR szFormat 
) const;

參數

  • szFormat
    格式標記。

傳回值

如果成功則傳回 S_OK 或在失敗的錯誤 HRESULT。

備註

這個方法 IDM_BLOCKFMT_command ID 傳送至瀏覽器控制項。

需求

Header: afxhtml.h

請參閱

參考

CHtmlEditCtrlBase 類別

CHtmlEditCtrlBase::GetBlockFormat