DocumentBase.Content Property
Visual Studio 2012
Gets a Range that represents the main document story.
Assembly: Microsoft.Office.Tools.Word.v4.0.Utilities (in Microsoft.Office.Tools.Word.v4.0.Utilities.dll)
The following code example adds text to the first paragraph in the document and then creates a range that includes all of the content in the document. The code then sets the font size for the contents of the range to 24. To use this example, run it from the ThisDocument class in a document-level project.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.