formatAsHTML
メッセージを HTML タグでラップ
説明
は、HTML タグで書式設定されたメッセージ テキストを返します。htmlMessageOut
= formatAsHTML(message
)
例
HTML としてのメッセージの書式設定
この例では formatAsHTML
を使用して進行状況メッセージを表示します。
import mlreportgen.ppt.*; pre = Presentation('myPresentation.pptx'); dispatcher = MessageDispatcher.getTheDispatcher; l = addlistener(dispatcher,'Message', ... @(src, evtdata) disp(evtdata.Message.formatAsHTML)); dispatch(dispatcher,ErrorMessage('invalid slide',pre)); open(pre); titleText = Text('This is a Title'); titleText.Style = {Bold}; replace(pre,'Title',titleText); close(pre); delete(l);
入力引数
message
— 進行状況メッセージ
mlreportgen.ppt.ProgressMessage
オブジェクト
進行状況メッセージ。mlreportgen.ppt.ProgressMessage
オブジェクトとして指定します。
出力引数
htmlMessageOut
— HTML タグ付きの進行状況メッセージ
mlreportgen.ppt.ProgressMessage
オブジェクト
HTML タグ付きの進行状況メッセージ。mlreportgen.ppt.ProgressMessage
オブジェクトとして返されます。
バージョン履歴
R2015b で導入
MATLAB コマンド
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)