User`s guide
mlreportgen.dom.FlowDirection class
12-121
Properties
Id — ID for document element
string
A session-unique ID is generated as part of document element creation. You can specify
an ID to replace the generated ID.
Tag — Tag for document element
string
Tag for document element, specified as a string.
A session-unique ID is generated as part of document element creation. The generated
tag has the form CLASS:ID, where CLASS is the class of the element and ID is the value
of the Id property of the object. You can specify a tag to replace the generated tag.
Specify your own tag value, for example, to make it easier to identify where an issue
occurred during document generation.
Value — Text flow direction
string
String specifying the direction for text to flow or the order of table columns.
• 'ltr' — text flow or table column order is from left to right
• 'rtl' — text flow or table column order is from right to left
Examples
Flow Text from Right to Left
In this example, changing the text flow direction changes “stressed” into “desserts”.
import mlreportgen.dom.*;
doctype = 'docx';
d = Document('test',doctype);
p = Paragraph('desserts');
p.Style = {FlowDirection('rtl')};
append(d,p);