Document Solutions for Word
DS.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
     NameDescription
    Public ConstructorCreates a new instance of the GcWordDocument class, optionally specifying a license key.  
    Top
    Public Properties
     NameDescription
    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 PropertyGets the collection of FontInfo objects associated with this document. (Inherited from GrapeCity.Documents.Word.DocumentBase)
    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 or sets whether to hide linked character styles.  
    Public Property Gets the collection of list templates in the document. (Inherited from GrapeCity.Documents.Word.DocumentBase)
    Public PropertyGets or sets the malformed URI rewriter that can be used to implement a custom strategy for rewriting malformed URIs.

    By default this property is null (i.e. no rewriting takes place).

    Set this to an instance of the DefaultMalformedUriRewriter class to use the default rewriting strategy, or use a custom IMalformedUriRewriter implementation.

     
    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.  
    Top
    Public Methods
     NameDescription
    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.  
    Top
    See Also