Documentation

mlreportgen.ppt.ProgressMessage.formatAsText

Package:mlreportgen.ppt

Format message as text

Syntax

  • textMessageOut = formatAsText(message)
    example

Description

example

textMessageOut= formatAsText(message)returns the message text formatted as text.

Examples

collapse all

Format a Message Text

This example usesformatAsTextto display the progress messages.

importmlreportgen.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);

Related Examples

Input Arguments

collapse all

message— The PPT progress messagemlreportgen.ppt.ProgressMessageobject

The PPT progress message, specified as anmlreportgen.ppt.ProgressMessageobject.

Output Arguments

collapse all

textMessageOut— PPT progress message formatted as textmlreportgen.ppt.ProgressMessageobject

PPT progress message formatted as text, returned as anmlreportgen.ppt.ProgressMessageobject.

Introduced in R2015b

Was this topic helpful?