rvico TRichView Reference | TRVStyle | TRVTabInfo

TRVTabInfo.Position

Top  Previous  Next

Defines distance of this tab stop from LeftMargin.

property Position: TRVStyleLength;

This value is measured either in screen pixels (when printing, it is recalculated according to the printer resolution) or in twips, depending on 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;

ParaStyle.Tabs[i].Align := rvtaRight; // index of this tab stop may be changed!

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


TRichView © trichview.com