constants PreviewFieldsEnum
The PreviewFieldsEnum type defines the settings you can change in the preview workspace. The PreviewSettings property specifies the settings you can change in the preview mode. The PreviewFieldsEnum type supports the following values:

NameValueDescription
exPreviewShowPageNumbers0 Shows or hides the page number in page's content. By default, the exPreviewShowPageNumbers property is False. Use the exPreviewPageNumberFormat and exPreviewPageNumbersAlignment properties to define the format and alignment of the page numbers to be shown on the preview. For instance, you can set the exPreviewShowPageNumbers property on True, when viewing the pages in compact mode (  exPreviewShowCompact ).

(Boolean expression)

exPreviewPageNumberFormat1 A String expression that defines the HTTML format to display the page number on pages. By default, the exPreviewPageNumberFormat property is "", which indicates that PageNumberFormat property is used instead. The exPreviewPageNumberFormat property supports the following predefined values:
  • <%page%> specifies the current page
  • <%count%> indicates the number of pages in the document.

Also the exPreviewPageNumberFormat property supports the HTML format as:

  • <b> ... </b> displays the text in bold
  • <i> ... </i> displays the text in italics
  • <u> ... </u> underlines the text
  • <s> ... </s> Strike-through text
  • <a id;options> ... </a> displays an anchor element that can be clicked. An anchor is a piece of text or some other object (for example an image) which marks the beginning and/or the end of a hypertext link.The <a> element is used to mark that piece of text (or inline image), and to give its hypertextual relationship to other documents. The control fires the AnchorClick(AnchorID, Options) event when the user clicks the anchor element. The FormatAnchor property customizes the visual effect for anchor elements.
  • <font face;size> ... </font> displays portions of text with a different font and/or different size. For instance, the <font Tahoma;12>bit</font> draws the bit text using the Tahoma font, on size 12 pt. If the name of the font is missing, and instead size is present, the current font is used with a different size. For instance, <font ;12>bit</font> displays the bit text using the current font, but with a different size.
  • <fgcolor rrggbb> ... </fgcolor> or <fgcolor=rrggbb> ... </fgcolor> displays text with a specified foreground color. The rr/gg/bb represents the red/green/blue values of the color in hexa values.
  • <bgcolor rrggbb> ... </bgcolor> or <bgcolor=rrggbb> ... </bgcolor> displays text with a specified background color. The rr/gg/bb represents the red/green/blue values of the color in hexa values.
  • <solidline rrggbb> ... </solidline> or <solidline=rrggbb> ... </solidline> draws a solid-line on the bottom side of the current text-line, of specified RGB color. The <solidline> ... </solidline> draws a black solid-line on the bottom side of the current text-line. The rr/gg/bb represents the red/green/blue values of the color in hexa values.
  • <dotline rrggbb> ... </dotline> or <dotline=rrggbb> ... </dotline> draws a dot-line on the bottom side of the current text-line, of specified RGB color. The <dotline> ... </dotline> draws a black dot-line on the bottom side of the current text-line. The rr/gg/bb represents the red/green/blue values of the color in hexa values.
  • <upline> ... </upline> draws the line on the top side of the current text-line (requires <solidline> or <dotline>).
  • <r> right aligns the text
  • <c> centers the text
  • <br> forces a line-break
  • <img>number[:width]</img> inserts an icon inside the text. The number indicates the index of the icon being inserted. Use the Images method to assign a list of icons to your chart. The last 7 bits in the high significant byte of the number expression indicates the identifier of the skin being used to paint the object. Use the Add method to add new skins to the control. If you need to remove the skin appearance from a part of the control you need to reset the last 7 bits in the high significant byte of the color being applied to the part. The width is optional and indicates the width of the icon being inserted. Using the width option you can overwrite multiple icons getting a nice effect. By default, if the width field is missing, the width is 18 pixels.
  • <img>key[:width]</img> inserts a custom size picture into the text being previously loaded using the HTMLPicture property. The Key parameter indicates the key of the picture being displayed. The Width parameter indicates a custom size, if you require to stretch the picture, else the original size of the picture is used.
  • & glyph characters as &amp; ( & ), &lt; ( < ), &gt; ( > ),  &qout; ( " ) and &#number; ( the character with specified code ), For instance, the &#8364; displays the EUR character. The & ampersand is only recognized as markup when it is followed by a known letter or a #character and a digit. For instance if you want to display <b>bold</b> in HTML caption you can use &lt;b&gt;bold&lt;/b&gt;
  • <off offset> ... </off> defines the vertical offset to display the text/element. The offset parameter defines the offset to display the element. This tag is inheritable, so the offset is keep while the associated </off> tag is found. You can use the <off offset> HTML tag in combination with the <font face;size> to define a smaller or a larger font to be displayed. For instance: Text with <font ;7><off 6>subscript displays the text such as: Text with subscript The Text with <font ;7><off -6>superscript displays the text such as: Text with subscript
  • <gra rrggbb;mode;blend> ... </gra> defines a gradient text. The text color or <fgcolor> defines the starting gradient color, while the rr/gg/bb represents the red/green/blue values of the ending color, 808080 if missing as gray. The mode is a value between 0 and 4, 1 if missing, and blend could be 0 or 1, 0 if missing. The <font> HTML tag can be used to define the height of the font. Any of the rrggbb, mode or blend field may not be specified. The <gra> with no fields, shows a vertical gradient color from the current text color to gray (808080). For instance the <font ;18><gra FFFFFF;1;1>gradient-center</gra></font> generates the following picture:
  • <out rrggbb;width> ... </out> shows the text with outlined characters, where rr/gg/bb represents the red/green/blue values of the outline color, 808080 if missing as gray, width indicates the size of the outline, 1 if missing. The text color or <fgcolor> defines the color to show the inside text. The <font> HTML tag can be used to define the height of the font. For instance the <font ;31><out 000000><fgcolor=FFFFFF>outlined</fgcolor></out></font> generates the following picture:
  • <sha rrggbb;width;offset> ... </sha> define a text with a shadow, where rr/gg/bb represents the red/green/blue values of the shadow color, 808080 if missing as gray, width indicates the size of shadow, 4 if missing, and offset indicates the offset from the origin to display the text's shadow, 2 if missing. The text color or <fgcolor> defines the color to show the inside text. The <font> HTML tag can be used to define the height of the font.  For instance the <font ;31><sha>shadow</sha></font> generates the following picture:

    or  <font ;31><sha 404040;5;0><fgcolor=FFFFFF>outline anti-aliasing</fgcolor></sha></font> gets:

(String expression)

exPreviewPageNumbersAlignment2 Specifies the alignment of page numbers in the page. By default, the exPreviewPageNumbersAlignment property is exMiddleCenter.

(ContentAlignmentEnum expression)

exPreviewShowCompact3 Specifies whether the preview shows the pages in a compact mode. By default, the exPreviewShowCompact property is exPreviewShowPageCompact.

(PreviewShowCompactEnum expression)

exPreviewBackColor4 Specifies the preview's mainframe background color. By default, the exPreviewBackColor property is the default system color for the menu.

(Color expression)

exPreviewAllowWheelScroll5 Indicates whether the user can scroll pages by rotating the mouse wheel. By default, the exPreviewAllowWheelScroll property is True.

(Boolean expression)

exPreviewAllowDragScroll6 Specifies whether the user can scroll pages by clicking and dragging the left mouse button. By default, the exPreviewAllowDragScroll property is True.

(Boolean expression)

exPreviewAllowUnprintPage7 Specifies whether the user can select/unselect pages/area using the right mouse button (CTRL key), to prevent them from printing. By default, the exPreviewAllowUnprintPage property is True.

(Boolean expression)

exPreviewAllowToggleZoom8 Indicates whether the user can toggle the zoom by clicking the focused page. By default, the exPreviewAllowToggleZoom property is True.

(Boolean expression)

exPreviewAllowMiddleZoom9 Specifies whether the user can zoom the pages by clicking and dragging the middle mouse button. By default, the exPreviewAllowMiddleZoom property is True.

(Boolean expression)