TRVBoxProperties.Width, WidthType

<< Click to display table of contents >>

TRVBoxProperties.Width, WidthType

These properties define a width of a floating box.

type
  TRVBoxWidthType = (rvbwtAbsolute, rvbwtRelPage, rvbwtRelMainTextArea,

    rvbwtRelLeftMargin, rvbwtRelRightMargin,

    rvbwtRelInnerMargin, rvbwtRelOuterMargin);

property WidthType: TRVBoxWidthType;
property Width: TRVFloatSize;

Value of WidthType

Meaning

rvbwtAbsolute

Width specifies the box width in Units of TRVStyle

rvbwtRelPage

Width specifies the box width in (1/1000)% of the page width

rvbwtRelMainTextArea

Width specifies the box width in (1/1000)% of the main text area width

rvbwtRelLeftMargin

Width specifies the box width in (1/1000)% of the left margin width

rvbwtRelRightMargin

Width specifies the box width in (1/1000)% of the right margin width

rvbwtRelInnerMargin

Width specifies the box width in (1/1000)% of the inner margin width (i.e. left margin for odd pages, right margin for even pages)

rvbwtRelOuterMargin

Width specifies the box width in (1/1000)% of the outer margin width (i.e. right margin for odd pages, left margin for even pages)

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

"Mirror margins" option affects calculation of margin widths on even pages.

For text boxes included in a header/footer that is used both for odd and even pages, a calculation is performed for odd pages (the same width is used for all pages).

These properties define a width 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:

WidthType=rvbwtRelPage, Width=20000: the width of box is equal to 20% of the page width.

Default values:

WidthType: rvbwtAbsolute

Height: 100