Tabulation addHeaderParagraph
Revision as of 12:35, 22 June 2016 by MortenHattingVoltelen (talk | contribs)
Tabulation_addHeaderParagraph
Adds an paragraph to the header
Syntax
Tabulation_addParagraph(TabulationParagraph)
Arguments
Examples
//Header
//We need a TabulationParagraphStyle, like with a normal paragraph.
TabulationParagraphStyle paragraphStyleHeader1 = new TabulationParagraphStyle();
paragraphStyle.Alignment = "left"; //The alignment decides what column the paragraph is shown in - left/center/right
//It also needs a normal TabulationTextStyle.
TabulationTextStyle textStyleHeaderFooter = new TabulationTextStyle();
Tabulation_addHeaderParagraph(new TabulationParagraph(paragraphStyleHeader1, "Test", textStyleHeaderFooter));
Tabulation_addHeaderParagraph(new TabulationParagraph(paragraphStyleHeader1, "Test Line 2", textStyleHeaderFooter));
paragraphStyleHeader1.Alignment = "center";
Tabulation_addHeaderParagraph(new TabulationParagraph(paragraphStyleHeader1, "Vox Titel", textStyleHeaderFooter));
paragraphStyleHeader1.Alignment = "right";
Tabulation_addHeaderParagraph(new TabulationParagraph(paragraphStyleHeader1, "dd/mm/yyyy", textStyleHeaderFooter));
Tabulation_addHeaderParagraph(new TabulationParagraph(paragraphStyleHeader1, "Report X", textStyleHeaderFooter));