NDoc 1.3.1 SDK |

# TemplateWriter.CopyToLine Method

Copies the text lines form the template to the output stream until a specific line is found.

    [Visual Basic]
    Public Function CopyToLine( _
       ByVal toLine As String _
    ) As Boolean
    [C#]
    public bool CopyToLine(
       string toLine
    );
    [C++]
    public: bool CopyToLine(
       String* toLine
    );
    [JScript]
    public function CopyToLine(
       String toLine
    ): bool;

#### Parameters

toLine
  The line text to search for. Must match exactly.

#### Return Value

true if the line was found, false if the end of the template stream was reached.

#### See Also

TemplateWriter Class | NDoc.Core Namespace