|
TRVTabInfo.Position |
Top Previous Next |
|
Defines distance of this tab stop from LeftMargin, pixels property Position: Integer; For right-to-left paragraphs, the distance is measured from RightMargin. This value is measured in "screen pixels" (when printing, it is recalculated according to the printer resolution). 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 |