Click or drag to resize

TableCell Class

Represents a table cell within a document. Implements interfaces for composite objects, document base, cell attribute source, and trackable node. Inherits from the Body class.
Inheritance Hierarchy

Namespace: Spire.Doc
Assembly: Spire.Doc (in Spire.Doc.dll) Version: 13.2.3.0 (13.2.3.3046)
Syntax
public class TableCell : Body, ICompositeObject, 
	IDocumentObject

The TableCell type exposes the following members.

Constructors
Name Description
Public method TableCell
Initializes a new instance of the TableCell class.
Top
Properties
Name Description
Public property CellFormat
Gets cell format.
Public property CellWidthType Obsolete.
Gets the width type of the cell.
Public property ChildObjects
Gets the child entities.
(Inherited from Body .)
Public property Count
Gets count of child object.
(Inherited from DocumentContainer .)
Public property Document
Gets the document.
(Inherited from OwnerHolder .)
Public property DocumentObjectType
Gets the type of the document object.
(Overrides Body DocumentObjectType .)
Public property FirstChild
Gets the first child of the Element.
(Inherited from DocumentObject .)
Public property FirstParagraph
Gets the First paragraph.
(Inherited from Body .)
Public property FormFields
Gets the form fields.
(Inherited from Body .)
Public property GridSpan
Gets grid Span.
Public property IsComposite
Indicating whether this instance is composite.
(Inherited from DocumentObject .)
Public property LastChild
Gets the last child of the Element.
(Inherited from DocumentObject .)
Public property LastParagraph
Gets the last paragraph.
(Inherited from Body .)
Public property NextSibling
Gets the next sibling.
(Inherited from DocumentObject .)
Public property Owner
Gets the owner of this entity.
(Inherited from DocumentObject .)
Public property OwnerRow
Gets owner row of the cell.
Public property Paragraphs
Gets inner paragraphs
(Inherited from Body .)
Public property PreviousSibling
Gets the previous sibling.
(Inherited from DocumentObject .)
Public property Scaling
Gets or sets the cell scaling.
Public property Tables
Gets inner tables
(Inherited from Body .)
Protected property WidgetCollection (Overrides Body WidgetCollection .)
Public property Width Obsolete.
Gets the width of the cell.
Protected property XDLSHolder (Inherited from DocumentSerializable .)
Top
Methods
Name Description
Public method AddParagraph
Adds paragraph at end of section.
(Inherited from Body .)
Public method AddTable
Adds the table.
(Inherited from Body .)
Public method AddTable(Boolean)
Adds the table.
(Inherited from Body .)
Public method Clone
Clones this instance.
Protected method CloneImpl (Overrides Body CloneImpl .)
Protected method CreateLayoutInfo (Overrides Body CreateLayoutInfo .)
Public method EnsureMinimum
If the text body has no paragraphs, creates and appends one Paragraph.
(Inherited from Body .)
Public method Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object .)
Protected method Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object .)
Public method GetCellIndex
Get cell index in the table row.
Public method GetCellWidth
Gets the width of the cell.
Public method GetCellWidthType
Gets the width type of the cell.
Public method GetHashCode
Serves as the default hash function.
(Inherited from Object .)
Public method GetIndex
Returns the zero-based index of the specified entity.
(Inherited from DocumentContainer .)
Public method GetNextWidgetSibling
Gets the next sibling.
(Inherited from DocumentObject .)
Public method GetPreviousWidgetSibling
Gets the previous widget sibling.
(Inherited from DocumentObject .)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object .)
Protected method InitXDLSHolder (Overrides Body InitXDLSHolder .)
Public method InsertXHTML(String)
Inserts html at end of text body.
(Inherited from Body .)
Public method InsertXHTML(String, Int32)
Inserts html. Inserting begins from paragraph specified by paragraphIndex
(Inherited from Body .)
Public method InsertXHTML(String, Int32, Int32)
Inserts html. Inserting begins from paragraph specified by paragraphIndex, and paragraph item specified by paragraphItemIndex
(Inherited from Body .)
Public method IsValidXHTML(String, XHTMLValidationType)
Validates the XHTML.
(Inherited from Body .)
Public method IsValidXHTML(String, XHTMLValidationType, String )
Validates the XHTML.
(Inherited from Body .)
Protected method MemberwiseClone
Creates a shallow copy of the current Object .
(Inherited from Object .)
Protected method ReadXmlAttributes (Overrides DocumentSerializable ReadXmlAttributes(IXDLSAttributeReader) .)
Protected method ReadXmlContent (Inherited from DocumentSerializable .)
Protected method RestoreReference (Inherited from DocumentSerializable .)
Public method SetCellWidth
Set the width and type of the cell.
Public method SplitCell
The one cell splits into two or more cells.
Public method ToString
Returns a string that represents the current object.
(Inherited from Object .)
Public method ToString(String)
Exports the name and index in container of the object into a string in the specified seperator.
(Inherited from DocumentObject .)
Protected method WriteXmlAttributes (Overrides DocumentSerializable WriteXmlAttributes(IXDLSAttributeWriter) .)
Protected method WriteXmlContent (Inherited from DocumentSerializable .)
Top
Fields
Name Description
Protected field m_bodyItems (Inherited from Body .)
Protected field m_doc (Inherited from OwnerHolder .)
Top
See Also