dispatch
类: mlreportgen.ppt.MessageDispatcher
命名空间: mlreportgen.ppt
发送 PPT 状态消息
说明
dispatch(
发送 PPT 状态消息。dispatcher
,message
)
示例
添加并发送进度消息
此示例显示如何添加在生成报告时显示的进度消息。
向演示文稿中添加调度程序和侦听程序。
import mlreportgen.ppt.*; pre = Presentation('myPresentation.pptx'); dispatcher = MessageDispatcher.getTheDispatcher; 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);
检查 MATLAB® 命令窗口中的进度消息。除了预定义的 PPT 进度消息外,还会出现 starting chapter
消息。
输入参数
dispatcher
— PPT 消 息调度程序
mlreportgen.ppt.MessageDispatcher
对象
PPT 消息调度程序,指定为 mlreportgen.ppt.MessageDispatcher
对象。
message
— 发送消息
PPT 消
息对象
要发送的消息,指定为 PPT 消息对象。使用以下类型的 PPT 消息对象之一:
mlreportgen.ppt.ProgressMessage
mlreportgen.ppt.WarningMessage
mlreportgen.ppt.ErrorMessage
mlreportgen.ppt.DebugMessage
版本历史记录
在 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)