Documents for Word, .NET Edition
GrapeCity.Documents.Word Assembly / GrapeCity.Documents.Word Namespace / GcWordDocument Class
Properties Methods

In This Topic
    GcWordDocument Class Members
    In This Topic

    The following tables list the members exposed by GcWordDocument.

    Public Constructors
    Public ConstructorCreates a new instance of the GcWordDocument class, optionally specifying a license key.  
    Public Properties
    Public Property Gets the main body of the document.  
    Public PropertyGets the collection of CustomXmlPart objects.  
    Public PropertyGets the GrapeCity.Documents.Word.Templates.DataTemplate object that provides properties and methods used to manage template data sources and process data templates.  
    Public Property Gets a supplementary document storage which stores the definition and content for content that shall be carried with the document for future insertion and/or use, but which shall not be visible within the contents of the main document story.  
    Public Property Gets the collection of list templates in the document. (Inherited from GrapeCity.Documents.Word.DocumentBase)
    Public Property Gets options that control protection, view, compatibility and other settings. (Inherited from GrapeCity.Documents.Word.DocumentBase)
    Public Property Gets the collection of styles defined in the document. (Inherited from GrapeCity.Documents.Word.DocumentBase)
    Public Property Gets the theme that holds all formatting options available to a document through a theme.  
    Public Methods
    Public Methodstatic (Shared in Visual Basic)Gets the source of a formatting property.

    This method finds and returns the object in the inheritance chain that determines the actual current value of the specified formatting property.

    For example, to find the object that determines the font size of the first run in the document body:

    var o = GetPropertyValueSource(() => document.Body.Runs.First.Font.Size);

    In this example, if the Heading 1 style was applied to the paragraph containing that run, this method would return that style.

    Public MethodOverloaded.  Loads an OpenXml formatted file into the document.  
    Public Methodstatic (Shared in Visual Basic)Overloaded. Merges several source documents into a single new GcWordDocument.  
    Public MethodOverloaded.  Saves the document to an OpenXml formatted file.  
    Public Methodstatic (Shared in Visual Basic) Sets the license key.  
    Public MethodOverloaded.  Splits the current document into several documents based on specified ranges and formatting copy strategies.  
    See Also