TRVBoxProperties.Height, HeightType

<< Click to display table of contents >>

TRVBoxProperties.Height, HeightType

These properties define a height of a floating box.

type
  TRVBoxHeightType = (rvbhtAbsolute, rvbhtRelPage, rvbhtRelMainTextArea,
    rvbhtRelTopMargin, rvbhtRelBottomMargin, rvbhtAuto);

property HeightType: TRVBoxHeightType;
property Height: TRVFloatSize;

Value of HeightType

Meaning

rvbhtAbsolute

Height specifies the box height in Units of TRVStyle

rvbhtRelPage

Height specifies the box height in (1/1000)% of the page height

rvbhtRelMainTextArea

Height specifies the box height in (1/1000)% of the main text area height

rvbhtRelTopMargin

Height specifies the box height in (1/1000)% of the top margin height

rvbhtRelBottomMargin

Height specifies the box height in (1/1000)% of the bottom margin height

rvbhtAuto

The box height is calculated based on the box content. Height property is ignored.

A main text area is an area on a page between margins, where the main document is printed.

Heights of the main text area, the top margin and the bottom margins are calculated after adjusting by the header height and the footer height (too long header may increase a height the top margin and decrease a height of the main text area; too long footer may increase a height the bottom margin and decrease a height of the main text area). Since headers and footers may be different on first/odd/even pages, these height may be different as well.

These properties define a height of a text box including contents, padding and border.

Unlike position properties, these values are always calculated relative to a page (and never calculated relative to a table cell).

Use TRichViewEdit.SetCurrentItemExtraIntPropertyEx and SetCurrentItemExtraStrPropertyEx to change values of these properties as an editing operation.

Example:

HeightType=rvbhtRelPage, Height=20000: the height of box is equal to 20% of the page height.

Default values:

HeightType: rvbhtAuto

Height: 100