mlreportgen.ppt.MessageFilter Class
Namespace: mlreportgen.ppt
Filter to control message dispatcher
Description
Filter for messages dispatched by the message dispatcher.
The mlreportgen.ppt.MessageFilter class is a handle class.
Properties
Whether to pass or block all messages, specified as a logical 1
(true) or 0 (false). When you
specify:.
1(true) — Pass all messages.0(false) — Block all messages.
Attributes:
GetAccess | public |
SetAccess | public |
NonCopyable | true |
Data Types: logical
Pass messages only for this PPT object, specified as a PPT object. Pass
messages only from the specified PPT object if the messages meet the other
filter conditions specified by this MessageFilter
object.
Attributes:
GetAccess | public |
SetAccess | public |
NonCopyable | true |
Whether to pass or block error messages, specified as a logical 1
(true) or 0 (false). When you
specify:.
1(true) — Pass error messages.0(false) — Block error messages.
Attributes:
GetAccess | public |
SetAccess | public |
NonCopyable | true |
Data Types: logical
Whether to pass or block warning messages, specified as a logical 1
(true) or 0 (false). When you
specify:.
1(true) — Pass warning messages.0(false) —— Block warning messages.
Attributes:
GetAccess | public |
SetAccess | public |
NonCopyable | true |
Data Types: logical
Whether to pass or block progress messages, specified as a logical 1
(true) or 0 (false). When you
specify:.
1(true) — Pass progress messages.0(false) — Block progress messages.
Attributes:
GetAccess | public |
SetAccess | public |
NonCopyable | true |
Data Types: logical
Whether to pass or block debug messages, specified as a logical 1
(true) or 0 (false). When you
specify:.
1(true) — Pass debug messages.0(false) — Block debug messages.
Attributes:
GetAccess | public |
SetAccess | public |
NonCopyable | true |
Data Types: logical
Examples
Create the presentation.
import mlreportgen.ppt.*; pre = Presentation("myPresentation.pptx");
Create the listener and add it to the message dispatcher.
dispatcher = MessageDispatcher.getTheDispatcher; dispatcher.Filter.ErrorMessagesPass = true; dispatcher.Filter.ProgressMessagesPass = false; l = addlistener(dispatcher,"Message", ... @(src, evtdata) disp(evtdata.Message.formatAsText));
Create the message and dispatch it before opening.
msg = ErrorMessage("Invalid slide",pre);
dispatch(dispatcher, msg);
open(pre);Create an error in the program and dispatch the message. Then open the presentation.
titleText = Text("This is a Title"); titleText.Style = {Bold}; replace(pre,"Title",titleText); close(pre);
Version History
Introduced in R2015b
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
- América Latina (Español)
- Canada (English)
- United States (English)
ヨーロッパ
- 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)