TRVBoxPosition.VerticalAnchorAnchor

<< Click to display table of contents >>

TRVBoxPosition.VerticalAnchorAnchor

Specifies a vertical anchor area for a floating box.

type
  TRVVerticalAnchor = (rvvanLine, rvvanParagraph, rvvanPage,

    rvvanMainTextArea, rvvanTopMargin, rvvanBottomMargin);
property VerticalAnchor: TRVVerticalAnchor;

A text box is positioned vertically relative to the area specified in this property.

It is important to understand that each area has a height; for example, when printing using TRVPrint, a top margin starts from the page's top edge and ends at Margins.Top.

If RelativeToCell=True, and a sidenote (or a text box item) is inserted in a table cell, then this property defines an area of this cell instead of a page.

Value

Anchor Area

Scheme

rvvanLine

A line where a sidenote character (or a text box item) is inserted.

Anchor_Line

rvvanParagraph

A paragraph where a sidenote character (or a text box item) is inserted.

Anchor_Paragraph

rvvanPage

A whole page
(or a whole table cell)

Anchor_Page

rvvanMainTextArea

A main text area, i.e. an area between margins
(or a table cell area minus cellpadding)

Anchor_MainTextArea

rvvanTopMargin

A top page margin
(or a top cell padding area)

Anchor_TopMargin

rvvanBottomMargin

A bottom page margin
(or a bottom cell padding area)

Anchor_BottomMargin

Use TRichViewEdit.SetCurrentItemExtraIntPropertyEx and SetCurrentItemExtraStrPropertyEx to change value of this property as an editing operation.

Differences from Microsoft Word*:

In MS Word, a "line" anchor does not have a height. MS Word uses only a top line coordinate, so a center and a bottom alignments relative to a line are different in TRichView and MS Word.

MS Word does not support alignment relative to a paragraph (so TRichView exports it as an alignment to a line).

MS Word does not support a relative (percent) alignment relative to a line or a paragraph (so TRichView exports them as absolute positions with zero offsets).

MS Word does not implement all options for vertical positioning relative to a cell:

absolute positions for all options (except for a line and a paragraph) are calculated relative to the cell area minus cellpadding (i.e. top of cell + top cell padding).

any alignment or percent position moves the box exactly to the cell area minus cellpadding (i.e. top of cell + top cell padding).

(* this information is based on tests of MS Word 2013)

Default value:

rvvanLine