MATLAB MATLAB REPORT GENERATOR - RELEASE NOTES Uživatelská příručka Strana 510

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 986
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 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”
Zobrazit stránku 509
1 2 ... 505 506 507 508 509 510 511 512 513 514 515 ... 985 986

Komentáře k této Příručce

Žádné komentáře