MATLAB MATLAB REPORT GENERATOR - RELEASE NOTES Guide de l'utilisateur Page 897

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 986
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 896
Create and Format Text
13-45
if passed
status = 'Passed';
statusStyle = 'Pass';
else
status = 'Failed';
statusStyle = 'Fail';
end
t2 = Text(status,statusStyle);
statusPara = Paragraph(t1);
append(statusPara,t2);
append(rpt, statusPara);
close(rpt);
rptview(rpt.OutputPath);
Override Template Formats
You can use programmatic formats to override the formats defined in a template-based
style. For example, suppose you define a style named AlertLevel in your template and
set the color to be green by default. You can override the style in your report program to
set a color based on the current alert level. For example:
t = Text('Danger!','AlertLevel');
t.Color = 'red';
See Also
Classes
mlreportgen.dom.Bold | mlreportgen.dom.CharEntity |
mlreportgen.dom.FontFamily | mlreportgen.dom.FontSize |
mlreportgen.dom.Italic | mlreportgen.dom.Strike | mlreportgen.dom.Text
| mlreportgen.dom.Underline
Related Examples
“Add Content to a Report” on page 13-11
More About
“Report Formatting Approaches” on page 13-20
Vue de la page 896
1 2 ... 892 893 894 895 896 897 898 899 900 901 902 ... 985 986

Commentaires sur ces manuels

Pas de commentaire