<< Click to display table of contents >> TRVTabInfo.Position |
Defines distance of this tab stop from LeftMargin.
property Position: TRVStyleLength;
This value is measured in Units of TRVStyle component which owns the paragraph style with this tab stop.
For right-to-left paragraphs, the distance is measured from RightMargin.
Collections of tab stops (TRVStyle.ParaStyles[i].Tabs) are sorted by this property in ascending order. They are resorted automatically when you assign value to this property.
Do not rely on index of item in this collection after assigning this property:
Wrong:
ParaStyle.Tabs[i].Position := 10;
// index of this tab stop may be changed!
ParaStyle.Tabs[i].Align := rvtaRight;
Correct:
ParaStyle.Tabs[i].Align := rvtaRight;
ParaStyle.Tabs[i].Position := 10;
or
with ParaStyles.Tabs[i] do
begin
Position := 10;
Align := rvtaRight;
end;
Default value:
0