Version

Document Class Members

The following tables list the members exposed by Document.

Public Constructors
 NameDescription
Public ConstructorDocument ConstructorCreates a new instance of the class.  
Public Fields
 NameDescription
Public FieldDefaultFileExtensionThe default file extension for documents produced by this class ("docx").  
Public FieldDefaultUnitOfMeasurementThe default value for the Unit property (Point).  
Public Properties
 NameDescription
Public PropertyBulletPropertiesReturns a collection of BulletProperties instances which can be used to make paragraphs appear as bullet points or as part of an automatic numbering run.  
Public PropertyContentBlocksReturns a collection of ContentBlock-derived objects, such as paragraphs or tables, which comprise the block-level content for this document.  
Public PropertyDefaultFontReturns Font object which applies to all characters in this document with no more specific setting.  
Public PropertyDefaultParagraphPropertiesReturns a ParagraphProperties instance which defines the properties for paragraphs which do not have properties explicitly defined.  
Public PropertyDefaultTablePropertiesReturns a DefaultTableProperties instance which defines the properties for tables which do not have properties explicitly defined.  
Public PropertyDocumentPropertiesReturns an object which contains information about this Document such as title, author, subject, etc.  
Public PropertyFinalSectionReturns a DocumentFinalSection instance which defines properties such as page size, margins, and orientation for the final section of the document.  
Public PropertyHasDefaultParagraphPropertiesReturns a boolean value indicating whether the object returned from the DefaultParagraphProperties property has been created, and whether any of its properties are set to non-default values.  
Public PropertyHasDefaultTablePropertiesReturns a boolean value indicating whether the object returned from the DefaultTableProperties property has been created, and whether any of its properties are set to non-default values.  
Public PropertyHasDocumentPropertiesReturns a boolean value indicating whether the object returned from the DocumentProperties property has been created, and whether any of its properties are set to non-default values.  
Public PropertyNewLineTypeReturns or sets a value which determines the method used to represent a newline in the generated output.  
Public PropertySectionsReturns a collection of Section instances which define the pagination for specific parts of the document.  
Public PropertyUnitReturns or sets a value indicating the implied unit of measurement for properties which represent graphical quantities.  
Public Methods
 NameDescription
Public MethodCreateAnchoredPictureReturns a new AnchoredPicture for use within this Document.  
Public MethodCreateAnchoredShapeOverloaded. Returns a new AnchoredShape for use within this Document.  
Public MethodCreateFontReturns a new Font for use within this Document.  
Public MethodCreateHyperlinkReturns a new TextHyperlink for use within this Document.  
Public MethodCreateInlinePictureReturns a new InlinePicture for use within this Document.  
Public MethodCreateInlineShapeOverloaded. Returns a new InlineShape for use within this Document.  
Public MethodCreateTextRunReturns a new TextRun for use within this Document.  
Public MethodCreateVmlShapeReturns a new VmlShape for use within this Document.  
Public MethodResetRestores all property values to their respective defaults, and clears the contents of all collections.  
Public MethodSaveOverloaded. Saves the contents of the document to a file in the MS Word2007 document format.  
Public MethodToStringReturns the string representation of this instance.  
See Also

View on GitHub