DocumentTable Class

Provides access to data of a single table (or spreadsheet) located in an external document to be used while assembling a document.
Inheritance Hierarchy
SystemObject
  GroupDocs.Assembly.DataDocumentTable

Namespace:  GroupDocs.Assembly.Data
Assembly:  GroupDocs.Assembly (in GroupDocs.Assembly.dll) Version: 20.6
Syntax
public class DocumentTable

The DocumentTable type exposes the following members.

Constructors
  NameDescription
Public methodDocumentTable(Stream, Int32)
Creates a new instance of this class using default DocumentTableOptions.
Public methodDocumentTable(String, Int32)
Creates a new instance of this class using default DocumentTableOptions.
Public methodDocumentTable(Stream, Int32, DocumentTableOptions)
Creates a new instance of this class.
Public methodDocumentTable(String, Int32, DocumentTableOptions)
Creates a new instance of this class.
Properties
  NameDescription
Public propertyColumns
Gets the collection of DocumentTableColumn objects representing columns of the corresponding table.
Public propertyIndexInDocument
Gets the original zero-based index of the corresponding table as per the source document.
Public propertyName
Gets or sets the name of this table used to access the table's data in a template document passed to DocumentAssembler.
Methods
  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Remarks

For documents of Spreadsheet file formats, a DocumentTable instance represents a single sheet. For documents of other file formats, a DocumentTable instance represents a single table.

To access data of the corresponding table while assembling a document, pass an instance of this class as a data source to one of DocumentAssembler.AssembleDocument overloads.

In template documents, a DocumentTable instance should be treated in the same way as if it was a DataTable instance. See template syntax reference for more information.

See Also