The sample demonstrates the basic scenario where you create a document from code and edit its formatting. It also complies with the Getting Started article.