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: 18.9
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
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(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