.
In Depth Banner
Skip Navigation Links

Select your preferred language

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);

    }

 

Return to the article.

Copyright © Bob Powell 2000-.  All rights reserved.