User`s guide

mlreportgen.dom.VerticalAlign class
12-345
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 — Vertical alignment of text relative to baseline
'superscript' (default) | 'subscript' | 'baseline'
String specifying the vertical alignment of text relative to the baseline.
Examples
Use a Superscript
import mlreportgen.dom.*;
doctype = 'html';
d = Document('test',doctype);
p = Paragraph('e = mc');
t = Text('2');
t.Style = {VerticalAlign('superscript')};
append(p,t);
append(d,p);
close(d);
rptview('test',doctype);
See Also
mlreportgen.dom.Text