MATLAB MATLAB REPORT GENERATOR - RELEASE NOTES Betriebsanweisung Seite 510

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 986
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 509
12 Classes – Alphabetical List
12-16
Examples
Create and Apply a Background Color
Create a deep sky blue background color object and apply it to a paragraph. Instead of
specifying the CSS color name 'DeepSkyBlue', you could use the hexadecimal value
'#00bfff'.
import mlreportgen.dom.*;
doctype = 'html';
d = Document('test', doctype);
blue = 'DeepSkyBlue';
% blue = '#00BFFF';
colorfulStyle = {Bold, Color(blue), BackgroundColor('Yellow')};
p = Paragraph('deep sky blue paragraph with yellow background');
p.Style = colorfulStyle;
append(d, p);
close(d);
rptview('test', doctype);
See Also
mlreportgen.dom.Color
More About
“Report Formatting Approaches”
Seitenansicht 509
1 2 ... 505 506 507 508 509 510 511 512 513 514 515 ... 985 986

Kommentare zu diesen Handbüchern

Keine Kommentare