MATLAB MATLAB REPORT GENERATOR - RELEASE NOTES Guida Utente Pagina 467

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 986
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 466
mlreportgen.dom.ProgressMessage.formatAsText
11-87
mlreportgen.dom.ProgressMessage.formatAsText
Package: mlreportgen.dom
Format message as text
Syntax
textMessageOut = formatAsText(message)
Description
textMessageOut = formatAsText(message) returns the message text formatted as
text.
Examples
Format a Message with White Spaces
This example uses formatAsText with the Web command to display the progress
messages.
import mlreportgen.dom.*;
doctype = 'html';
d = Document('test',doctype);
d.Tag = 'My report';
dispatcher = MessageDispatcher.getTheDispatcher;
l = addlistener(dispatcher,'Message', ...
@(src, evtdata) disp(evtdata.Message.formatAsText));
open(d);
dispatch(dispatcher,ProgressMessage('starting chapter',d));
p = Paragraph('Chapter ');
p.Tag = 'chapter title';
p.Style = { CounterInc('chapter'),...
CounterReset('table'),WhiteSpace('pre') };
append(p, AutoNumber('chapter'));
Vedere la pagina 466
1 2 ... 462 463 464 465 466 467 468 469 470 471 472 ... 985 986

Commenti su questo manuale

Nessun commento