formatAsText
メッセージをテキストとして書式設定
説明
は、テキストとして書式設定されたメッセージ テキストを返します。textMessageOut
= formatAsText(message
)
例
メッセージ テキストの書式設定
この例では formatAsText
を使用して進行状況メッセージを表示します。
import mlreportgen.ppt.*; pre = Presentation('myPresentation.pptx'); dispatcher = MessageDispatcher.getTheDispatcher; dispatcher.Filter.DebugMessagesPass = true; l = addlistener(dispatcher,'Message', ... @(src,evtdata) disp(evtdata.Message.formatAsText)); 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
— PPT 進行状況メッセージ
mlreportgen.ppt.ProgressMessage
オブジェクト
PPT 進行状況メッセージ。mlreportgen.ppt.ProgressMessage
オブジェクトとして指定します。
出力引数
textMessageOut
— テキストとして書式設定された PPT 進行状況メッセージ
mlreportgen.ppt.ProgressMessage
オブジェクト
テキストとして書式設定された PPT 進行状況メッセージ。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)