'Declaration Public Class DocX Inherits Xceed.Document.NET.Document
'Usage Dim instance As DocX
public class DocX : Xceed.Document.NET.Document
'Declaration Public Class DocX Inherits Xceed.Document.NET.Document
'Usage Dim instance As DocX
public class DocX : Xceed.Document.NET.Document
// Add the SignatureLine to the document. mySignatureLine = document.AddSignatureLine(); // Insert the SignatureLine in a document's paragraph. myParagraph.AppendSignatureLine( mySignatureLine ); // Create a digital certificate in order to sign the document, by using a pfx file and its password. var certificate = DigitalCertificate.Create( "CustomCertificate.pfx", "xceed" ); // Create SignOptions for the SignatureLine. // Use the SignatureLineId to match the SignatureLine id and set the image used to sign the SignatureLine. var signOptions = new SignOptions() { SignatureLineId = mySignatureLine.Id, SignatureLineImage = "MarkStoneSignature.png", Comments = "This document is now signed by Mark Stone." }; // Sign the document with the certificate and the SignOptions, related to the SignatureLine. DocX.Sign( "DocumentToSign.docx", "SignedDocument.docx", certificate, signOptions );
System.Object
Xceed.Document.NET.DocumentElement
Xceed.Document.NET.Container
Xceed.Document.NET.Document
Xceed.Words.NET.DocX
Name | Description | |
---|---|---|
![]() | Bookmarks | Gets the collection of Bookmarks in this Document. (Inherited from Xceed.Document.NET.Document) |
![]() | Charts | Gets the collection of Charts in this Container. (Inherited from Xceed.Document.NET.Container) |
![]() | CheckBoxes | Gets the collection of CheckBoxes in this Document. (Inherited from Xceed.Document.NET.Document) |
![]() | CoreProperties | Gets the dictionary for the core properties in this Document. (Inherited from Xceed.Document.NET.Document) |
![]() | CustomProperties | Gets the dictionary for the CustomProperties in this Document. (Inherited from Xceed.Document.NET.Document) |
![]() | DifferentFirstPage | Gets or sets if the first page of the Document uses an independant Header and Footer. (Inherited from Xceed.Document.NET.Document) |
![]() | DifferentOddAndEvenPages | Gets or sets if the even and odd pages of the Document use different Headers and Footers. (Inherited from Xceed.Document.NET.Document) |
![]() | EndnoteProperties | Gets/sets the properties for endnotes in the first section of the document. (Inherited from Xceed.Document.NET.Document) |
![]() | EndnotesText | Gets the list of end notes in this Document. (Inherited from Xceed.Document.NET.Document) |
![]() | Footers | Gets the collection of Footers of this Document. (Inherited from Xceed.Document.NET.Document) |
![]() | FootnoteProperties | Gets/sets the properties for footnotes in the first section of the document. (Inherited from Xceed.Document.NET.Document) |
![]() | FootnotesText | Gets the list of foot notes in this Document. (Inherited from Xceed.Document.NET.Document) |
![]() | Headers | Gets the collection of Headers of this Document. (Inherited from Xceed.Document.NET.Document) |
![]() | Hyperlinks | Gets the collection of Hyperlinks in this Container. (Inherited from Xceed.Document.NET.Container) |
![]() | Hyphenation | Gets or sets the document hyphenation object. (Inherited from Xceed.Document.NET.Document) |
![]() | Images | Gets the collection of Images in this Document. (Inherited from Xceed.Document.NET.Document) |
![]() | IsPasswordProtected | Gets if this Document is password protected. (Inherited from Xceed.Document.NET.Document) |
![]() | IsProtected | Gets if any editing restrictions are imposed on this Document. (Inherited from Xceed.Document.NET.Document) |
![]() | Lists | Gets the collection of Lists in this Document. (Inherited from Xceed.Document.NET.Document) |
![]() | MarginBottom | Gets or sets the bottom margin in this Document (in points). (Inherited from Xceed.Document.NET.Document) |
![]() | MarginFooter | Gets or sets the footer margin in this Document (in points). (Inherited from Xceed.Document.NET.Document) |
![]() | MarginHeader | Gets or sets the header margin in this Document (in points). (Inherited from Xceed.Document.NET.Document) |
![]() | MarginLeft | Gets or sets the left margin in this Document (in points). (Inherited from Xceed.Document.NET.Document) |
![]() | MarginRight | Gets or sets the right margin in this Document (in points). (Inherited from Xceed.Document.NET.Document) |
![]() | MarginTop | Gets or sets the top margin in this Document (in points). (Inherited from Xceed.Document.NET.Document) |
![]() | MirrorMargins | Gets or sets if the mirror margins option is enabled in this Document. (Inherited from Xceed.Document.NET.Document) |
![]() | PackagePart | Gets or sets the PackagePart for this element. (Inherited from Xceed.Document.NET.DocumentElement) |
![]() | PageBackground | Gets or sets the background color to use for all the pages in the document. (Inherited from Xceed.Document.NET.Document) |
![]() | PageBorders | Gets or sets the Borders to use for all the pages of the first Section in this Document. (Inherited from Xceed.Document.NET.Document) |
![]() | PageHeight | Gets or sets the page height in this Document (in points). (Inherited from Xceed.Document.NET.Document) |
![]() | PageLayout | Gets the PageLayout in this Document. (Inherited from Xceed.Document.NET.Document) |
![]() | PageWidth | Gets or sets the page width in this Document (in points). (Inherited from Xceed.Document.NET.Document) |
![]() | ParagraphFormattings | Returns a list of all the paragraph formatting styles found inside the document. This list includes all the styled run properties (bold, size, color...) but not the styled paragraph properties (spacing, borders, etc.). (Inherited from Xceed.Document.NET.Document) |
![]() | Paragraphs | Gets the collection of Paragraphs in this Document. (Inherited from Xceed.Document.NET.Document) |
![]() | ParagraphsDeepSearch | (Inherited from Xceed.Document.NET.Container) |
![]() | Pictures | Gets the collection of Pictures in this Container. (Inherited from Xceed.Document.NET.Container) |
![]() | Sections | Gets the cached list of Sections from this Document. (Inherited from Xceed.Document.NET.Document) |
![]() | Shapes | Gets the collection of Shapes in this Container. (Inherited from Xceed.Document.NET.Container) |
![]() | SignatureLines | Gets the list of all the SignatureLines contained in the document. (Inherited from Xceed.Document.NET.Document) |
![]() | Tables | Gets the collection of Tables in this Document. (Inherited from Xceed.Document.NET.Document) |
![]() | Text | Gets the Text in this Document. (Inherited from Xceed.Document.NET.Document) |
![]() | TextBoxes | Gets the collection of TextBoxes in this Container. (Inherited from Xceed.Document.NET.Container) |
![]() | Watermarks | Gets the collection of Watermarks in the Document. (Inherited from Xceed.Document.NET.Document) |
![]() | Xml | Gets or sets the XML for this element. (Inherited from Xceed.Document.NET.DocumentElement) |
Name | Description | |
---|---|---|
![]() | AddChart<T> | Used to construct the charts. (Inherited from Xceed.Document.NET.Document) |
![]() | AddCheckBox | Adds a CheckBox to a Document. (Inherited from Xceed.Document.NET.Document) |
![]() | AddCoreProperty | Adds a core property to this document. If a core property already exists with the same name, it will be replaced. Core property names are case insensitive. (Inherited from Xceed.Document.NET.Document) |
![]() | AddCustomProperties | Gets the collection of CustomProperty objects & processes them all at once. (Inherited from Xceed.Document.NET.Document) |
![]() | AddCustomProperty | Adds a custom property to the Document. (Inherited from Xceed.Document.NET.Document) |
![]() | AddEndnote | Used to add a new endnote description in the document. (Inherited from Xceed.Document.NET.Document) |
![]() | AddFooters | Adds three new Footers to the first Section of this Document . One for the first page, one for odd pages, and one for even pages. (Inherited from Xceed.Document.NET.Document) |
![]() | AddFootnote | Used to add a new footnote description in the document. (Inherited from Xceed.Document.NET.Document) |
![]() | AddHeaders | Adds three new Headers to the first Section of this Document . One for the first page, one for odd pages, and one for even pages. (Inherited from Xceed.Document.NET.Document) |
![]() | AddHyperlink | Overloaded. Adds a Hyperlink to a Document's Hyperlink collection. (Inherited from Xceed.Document.NET.Document) |
![]() | AddImage | Overloaded. (Inherited from Xceed.Document.NET.Document) |
![]() | AddList | Overloaded. Adds a List to a Document. (Inherited from Xceed.Document.NET.Document) |
![]() | AddPasswordProtection | Protects the Document from modifications by adding a protection password. (Inherited from Xceed.Document.NET.Document) |
![]() | AddProtection | Protects the document from modifications. (Inherited from Xceed.Document.NET.Document) |
![]() | AddShape | Adds a Shape to a Document. (Inherited from Xceed.Document.NET.Document) |
![]() | AddSignatureLine | Adds a SignatureLine to the document. |
![]() | AddTable | Overloaded. Adds a Table to a Document, using the provided row count and column count for the size. (Inherited from Xceed.Document.NET.Document) |
![]() | AddTextBox | Adds a TextBox to a Document. (Inherited from Xceed.Document.NET.Document) |
![]() | AddWatermark | Adds a Watermark to the Document. (Inherited from Xceed.Document.NET.Document) |
![]() | ApplyTemplate | Overloaded. Applies a template by using a string that points to the template file. (Inherited from Xceed.Document.NET.Document) |
![]() ![]() | AreSignaturesValid | Overloaded. Checks the validity of the digital signatures in a document. |
![]() | ClearBookmarks | Removes all the Bookmarks from this Container. (Inherited from Xceed.Document.NET.Container) |
![]() ![]() | ConvertToPdf | Overloaded. Converts a DocX document into a PDF document. |
![]() | Copy | Overridden. Copies the document into a new Document. |
![]() ![]() | Create | Overloaded. Creates a document. |
![]() | Dispose | Releases all resources used by this document. (Inherited from Xceed.Document.NET.Document) |
![]() | FindAll | Overloaded. Retrieves all the indexes in this Container where the provided search value is found. (Inherited from Xceed.Document.NET.Container) |
![]() | FindUniqueByPattern | (Inherited from Xceed.Document.NET.Document) |
![]() | GetBookmarks | Retrieves the list of Bookmarks found in this Container. (Inherited from Xceed.Document.NET.Container) |
![]() | GetPageCount | Gets the number of pages in the document. (Inherited from Xceed.Document.NET.Document) |
![]() | GetProtectionType | Returns the type of editing protection imposed on this document. (Inherited from Xceed.Document.NET.Document) |
![]() | GetSections | Reads the xml of the Container to create a list of Sections. (Inherited from Xceed.Document.NET.Container) |
![]() ![]() | GetSignatures | Overloaded. Gets the digital signatures in a document. |
![]() | InsertAtBookmark | (Inherited from Xceed.Document.NET.Document) |
![]() | InsertBookmark | Inserts a Bookmark to this Container. (Inherited from Xceed.Document.NET.Container) |
![]() | InsertChart | (Inherited from Xceed.Document.NET.Document) |
![]() | InsertChartAfterParagraph | Inserts a chart in the document after the specified paragraph. (Inherited from Xceed.Document.NET.Document) |
![]() | InsertContent | Inserts content in this Container. (Inherited from Xceed.Document.NET.Container) |
![]() | InsertDefaultTableOfContents | Inserts a default Table of Contents in the current document. (Inherited from Xceed.Document.NET.Document) |
![]() | InsertDocument | Overloaded. Inserts the contents of another document at the end of this Document. (Inherited from Xceed.Document.NET.Document) |
![]() | InsertEquation | (Inherited from Xceed.Document.NET.Document) |
![]() | InsertList | Overloaded. (Inherited from Xceed.Document.NET.Document) |
![]() | InsertParagraph | Overloaded. (Inherited from Xceed.Document.NET.Document) |
![]() | InsertParagraphs | Inserts many paragraphs in the document using the text parameter. Each '\n' in the text parameter will create a new paragraph. (Inherited from Xceed.Document.NET.Document) |
![]() | InsertSection | Overloaded. Inserts a Section in the Document by making a copy of the previous Section, and optionally track this change. (Inherited from Xceed.Document.NET.Document) |
![]() | InsertSectionPageBreak | Inserts a Section page break to the Document by making a copy of the previous Section, and optionally track this change. (Inherited from Xceed.Document.NET.Document) |
![]() | InsertTable | Overloaded. (Inherited from Xceed.Document.NET.Document) |
![]() | InsertTableOfContents | Overloaded. Inserts a table of contents to the document, based on the provided switches. (Inherited from Xceed.Document.NET.Document) |
![]() | IsSignatureLineSigned | Overridden. Evaluates if a SignatureLine is signed. |
![]() | IsSignatureLineValid | Overridden. Evaluates if a SignatureLine is signed and if the digital signature is valid. |
![]() ![]() | IsSigned | Overloaded. Returns true if the input document contains at least 1 digital signature, false otherwise. |
![]() ![]() | Load | Overloaded. Loads a document into a DocX object. |
![]() ![]() | RemoveAllSignatures | Overloaded. Removes all the digital signatures in a document. |
![]() | RemoveBookmark | Removes the specified Bookmark from the Container. (Inherited from Xceed.Document.NET.Container) |
![]() | RemoveParagraph | Removes a Paragraph from this Container. (Inherited from Xceed.Document.NET.Container) |
![]() | RemoveParagraphAt | Removes the Paragraph found at a specific location in the Container. (Inherited from Xceed.Document.NET.Container) |
![]() | RemovePasswordProtection | Removes the password protection on a Document. (Inherited from Xceed.Document.NET.Document) |
![]() | RemoveProtection | Removes the protection on a Document. (Inherited from Xceed.Document.NET.Document) |
![]() ![]() | RemoveSignature | Overloaded. Removes a digital signature from a document. |
![]() | RemoveText | Removes all the Text between a startingTag and an endingTag, even when those tags are located in different Paragraphs. (Inherited from Xceed.Document.NET.Container) |
![]() | RemoveTextInGivenFormat | Removes all text occurences that match the provided format. (Inherited from Xceed.Document.NET.Container) |
![]() | RemoveWatermark | Removes a Watermark from the Document. (Inherited from Xceed.Document.NET.Document) |
![]() | ReplaceAtBookmark | Replaces the text at the specified Bookmark in this Container. (Inherited from Xceed.Document.NET.Container) |
![]() | ReplacePicture | Targets a Picture from a specific Paragraph in the Container & replaces it with a new Picture. (Inherited from Xceed.Document.NET.Container) |
![]() | ReplaceText | Overloaded. Replaces all instances of a string with another string using the options set via the replaceTextOptions parameter. (Inherited from Xceed.Document.NET.Document) |
![]() | ReplaceTextWithHTML | Replaces all instances of a string with HTML content. (Inherited from Xceed.Document.NET.Document) |
![]() | ReplaceTextWithObject | Replaces all instances of a string with a DocumentElement. (Inherited from Xceed.Document.NET.Document) |
![]() | Save | Overridden. Saves this document. |
![]() | SaveAs | Overloaded. Overridden. Saves this document but allows to set some options first. |
![]() | SetDefaultFont | Sets the default font characteristics of the Document. (Inherited from Xceed.Document.NET.Document) |
![]() | SetDirection | Sets the Direction of the content of this Container. (Inherited from Xceed.Document.NET.Container) |
![]() ![]() | Sign | Overloaded. Allows to digitally sign a document. |
![]() ![]() | Split | Divides a Document into a list of new Documents. |
![]() | UpdateFields | Sets a flag to true, so that when the saved document is opened with MS Word, a popup will appear to ask if the fields should be updated. (Inherited from Xceed.Document.NET.Document) |
![]() | UpdateTrackChangesAuthor | Changes the name of the user that is currently modifying the Document. (Inherited from Xceed.Document.NET.Document) |
![]() | ValidateBookmarks | (Inherited from Xceed.Document.NET.Document) |
Name | Description | |
---|---|---|
![]() | AddElementInXml | (Inherited from Xceed.Document.NET.Document) |
![]() | clonePackagePart | (Inherited from Xceed.Document.NET.Document) |
![]() | clonePackageRelationship | (Inherited from Xceed.Document.NET.Document) |
![]() | GetMD5HashFromStream | (Inherited from Xceed.Document.NET.Document) |
![]() | InternalCopy | Overridden. |
![]() | SaveHeadersFooters | Overridden. |
Target Platforms: Windows 11, Windows 10, Windows 7, Windows 11, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2