<< Click to display table of contents >> TRVBoxPosition.VerticalPositionKind, VerticalOffset, VerticalAlignment |
These properties define a vertical position of a floating box.
type
TRVFloatVerticalAlignment = (rvfpvalTop, rvfpvalCenter, rvfpvalBottom);
property VerticalPositionKind: TRVFloatPositionKind;
property VerticalOffset: TRVFloatPosition;
property VerticalAlignment: TRVFloatVerticalAlignment;
A position is calculated relative to the area specified in VerticalAnchor.
Note 1: these properties define the position of the box in the way similar to Microsoft Word. However, there are differences, see the notes in the topic about VerticalAnchor.
Note 2: printers cannot print at areas close to paper edges; is the box is positioned close to a top or a bottom side of the page, it may overlap these areas.
The position is defined in VerticalAlignment. VerticalOffset is ignored.
Value of VerticalAlignment |
Meaning |
---|---|
rvfphalTop |
The top side of the box is at the top side of the anchor area. |
rvfphalCenter |
The center of the box is at center of the anchor area. |
rvfphalBottom |
The bottom side of the box is at the bottom side of the anchor area. |
The position is defined in VerticalOffset. VerticalAlignment is ignored.
VerticalOffset is measured in Units of the linked TRVStyle.
A position is counted from the top side of the anchor area. Positive values shift the box down, negative values shift the box up.
The position is defined in VerticalOffset. VerticalAlignment is ignored.
VerticalOffset is measured in (1/1000)% of the anchor area height.
A position is counted from the top side of the anchor area. Positive values shift the box down, negative values shift the box up.
Use TRichViewEdit.SetCurrentItemExtraIntPropertyEx and SetCurrentItemExtraStrPropertyEx to change values of these properties as an editing operation.
Default values:
▪VerticalPositionKind: rvfpkAbsPosition
▪VerticalOffset: 0
▪VerticalAlignment: rvfpvalTop