MATLAB MATLAB REPORT GENERATOR - RELEASE NOTES Guía de usuario Pagina 897

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 986
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 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
Vista de pagina 896
1 2 ... 892 893 894 895 896 897 898 899 900 901 902 ... 985 986

Comentarios a estos manuales

Sin comentarios