LeftJustifyLine method.
///
<summary>
///
Calculates word positions for a left justified line
///
</summary>
///
<param name="words">A
reference to the line being repaginated</param>
public
void LeftJustifyLine(ref
WordPosCollection words)
{
if(words.Count==0)
return;
TrimEnd(ref
words);
if(words.Count==0)
return;
TrimStart(ref
words);
if(words.Count==0)
return;
RePos(ref
words);
}
'/ <summary>
'/
Calculates word positions for a left justified line
'/
</summary>
'/
<param name="words">A reference to the line being repaginated</param>
Public
Sub LeftJustifyLine(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
RePos(words)
End
Sub 'LeftJustifyLine