TSRVPageProperty

Properties   Methods

Top  Previous  Next

TSRVPageProperty is the class for TSRichViewEdit.PageProperty property.

Unit SclRView.

Syntax

TSRVPageProperty = class(TPersistent)

Hierarchy

TObject

TPersistent

Properties

Page sizes and margins

The following properties define page size: PageFormat and Orientation.

PageWidth and PageHeight are usually calculated automatically, but can define a page size if PageFormat=srvfmCustom.

The following properties define margins: LeftMargin, TopMargin, RightMargin, BottomMargin.

All sizes are measured in TSRichViewEdit.UnitsProgram.

Viewing modes

The following properties are used to implement different viewing modes: AutoWidth and PageViewMode.

Typical modes:

"Normal mode" (one long page, width depends on PageWidth): AutoWidth=False, PageViewMode=False.

"Web mode" (one long page, width depends on the window size): AutoWidth=True, PageViewMode=False.

"Page View Mode": AutoWidth=False, PageViewMode=True.

In page view mode, the following properties affect distance between pages: MaxPageBreakHeight, MinPageBreakHeight, PageBreakHeight.

For horizontal position, see BoundLeftRight (in all modes).

A border can be drawn around pages, see BorderPen. A printable area can be shown, see PrintableAreaPen (the current printer cannot print beyond this area).

The caret is drawn using CaretPen.

Page numbering

Page numbers are printed, if PageNoVisible=True.

They are printed at the top or the bottom of pages, depending on PageNoVAlign property. A horizontal alignment is specified in PageNoHAlign, font is specified in PageNoFont.

The numbering is started from PageNoFromNumber. You can omit page numbers on one or more first pages, using PageNoFirst.

Header and footer

A header is printed, if HeaderVisible=True. The header position is defined in HeaderY.

A footer is printed, if FooterVisible=True. The footer position is defined in FooterY.

See also: TSRVViewProperty.


ScaleRichView © Ilya Zelensky & Sergey Tkachenko