StyleOptions

Style options for various tags. Helpful reference: https://www.w3.org/TR/CSS22/sample.html Note: there is no <b> and <i> style, as commonmark-d doesn't generate them.

Members

Variables

b
TagStyle b;
Undocumented in source.
code
TagStyle code;
Undocumented in source.
color
string color;

Default text color.

em
TagStyle em;
Undocumented in source.
fontFace
string fontFace;

Default font face.

fontSizePt
float fontSizePt;

Default font size, in points.

fontStyle
FontStyle fontStyle;

Default font italic-ness

fontWeight
FontWeight fontWeight;

Default font weight.

h1
TagStyle h1;
Undocumented in source.
h2
TagStyle h2;
Undocumented in source.
h3
TagStyle h3;
Undocumented in source.
h4
TagStyle h4;
Undocumented in source.
h5
TagStyle h5;
Undocumented in source.
h6
TagStyle h6;
Undocumented in source.
i
TagStyle i;
Undocumented in source.
img
TagStyle img;
Undocumented in source.
li
TagStyle li;
Undocumented in source.
ol
TagStyle ol;
Undocumented in source.
onEnterPage
void delegate(IRenderingContext2D context, int pageCount) onEnterPage;

An empty callback you can override to decorate each page of the document. You cannot call other FlowDocument function from inside this callback. pageCount is the page number, starting with 1. This is called before anything else is drawn on a page.

p
TagStyle p;
Undocumented in source.
pageBottomMarginMm
float pageBottomMarginMm;

Bottom margin, in millimeters.

pageLeftMarginMm
float pageLeftMarginMm;

Left margin, in millimeters.

pageRightMarginMm
float pageRightMarginMm;

Right margin, in millimeters.

pageTopMarginMm
float pageTopMarginMm;

Top margin, in millimeters.

paragraphTextIndentMm
float paragraphTextIndentMm;

<p> first line text indentation, in millimeters.

pre
TagStyle pre;
Undocumented in source.
strong
TagStyle strong;
Undocumented in source.
textAlign
TextAlign textAlign;

Default text alignment (only TextAlign.start and TextAlign.left are supported!)

ul
TagStyle ul;
Undocumented in source.

Meta