///
<summary>
///
Calculates word positions for a right justified line
///
</summary>
///
<param name="words">A
reference to the line being repaginated</param>
public
virtual void
RightJustifyLine(ref WordPosCollection words)
{
if(words.Count==0)
return;
TrimEnd(ref
words);
if(words.Count==0)
return;
TrimStart(ref
words);
if(words.Count==0)
return;
words[0].PagePos=LeftMargin;
RePos(ref
words);
words[0].PagePos=ColumnWidth-GetLineLength(ref
words)+LeftMargin;
RePos(ref
words);
}
'/ <summary>
'/
Calculates word positions for a right justified line
'/
</summary>
'/
<param name="words">A reference to the line being repaginated</param>
Public
Overridable Sub
RightJustifyLine(ByRef words
As WordPosCollection)
If
words.Count = 0 Then
Return
End
If
TrimEnd(words)
If
words.Count = 0 Then
Return
End
If
TrimStart(words)
If
words.Count = 0 Then
Return
End
If
words(0).PagePos = LeftMargin
RePos(words)
words(0).PagePos = ColumnWidth - GetLineLength(words) + LeftMargin
RePos(words)
End
Sub 'RightJustifyLine