A Drop-in Indented TextWriter in C# A handy code snippet that can set indentation levels while rendering multipart documents with a TextWriter Click here to read the article