[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.Cell

Class Cell

Namespace
GrapeCity.Documents.Word
Assembly
GcDocs.Word.dll

Represents a table cell element in a body content.

public class Cell : FormattedContentObject, IBrowsable<Cell>
Inheritance
object
Cell
Implements
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Properties

Format

Provides access to this table cell formatting properties.

public CellFormat Format { get; }

Property Value

CellFormat

ID

Gets or sets a unique identifier for the table cell. This identifier must be unique within the table, and is used to identify this table cell as a header cell for other cells within the table.

public string ID { get; set; }

Property Value

string

Index

Gets the index of this cell in the parent table row.

public int Index { get; }

Property Value

int

Next

Gets the next table cell.

public Cell Next { get; }

Property Value

Cell

Previous

Gets the previous table cell.

public Cell Previous { get; }

Property Value

Cell

Row

Gets the parent table row of this cell.

public Row Row { get; }

Property Value

Row

Table

Gets the parent table of this cell.

public Table Table { get; }

Property Value

Table

Methods

AddContentControl(ContentControlType, bool)

Adds a ContentControl to the end of the cell.

public ContentControl AddContentControl(ContentControlType type, bool fillContent = true)

Parameters

type ContentControlType

The new content control type.

fillContent bool

Whether to fill the new control content with default data.

Returns

ContentControl

The added ContentControl.

AddParagraph()

Adds a Paragraph to the end of the cell.

public Paragraph AddParagraph()

Returns

Paragraph

The added Paragraph.

AddParagraph(Style)

Adds a Paragraph to the end of the cell.

public Paragraph AddParagraph(Style style)

Parameters

style Style

The paragraph style.

Returns

Paragraph

The added Paragraph.

AddParagraph(string, Style)

Adds a Paragraph to the end of the cell.

public Paragraph AddParagraph(string text, Style style)

Parameters

text string

The text of the added Paragraph

style Style

The paragraph style.

Returns

Paragraph

The added Paragraph.

AddParagraph(string)

Adds a Paragraph to the end of the cell.

public Paragraph AddParagraph(string text)

Parameters

text string

The text of the added Paragraph

Returns

Paragraph

The added Paragraph.

AddTable()

Adds a Table to the end of the cell.

public Table AddTable()

Returns

Table

The added Table.

AddTable(Style)

Adds a Table to the end of the cell.

public Table AddTable(Style style)

Parameters

style Style

The table style.

Returns

Table

The added Table.

AddTable(int, int, Style)

Adds a Table to the end of the cell.

public Table AddTable(int columns, int rows, Style style)

Parameters

columns int

The number of columns in the new table.

rows int

The number of rows in the new table.

style Style

The table style.

Returns

Table

The added Table.

AddTable(int, int)

Adds a Table to the end of the cell.

public Table AddTable(int columns, int rows)

Parameters

columns int

The number of columns in the new table.

rows int

The number of rows in the new table.

Returns

Table

The added Table.

AddTable(string[][], Style)

Adds a Table to the end of the cell.

public Table AddTable(string[][] texts, Style style)

Parameters

texts string[][]

A two dimensional array of texts to put in the cells. The first dimension determines the number of rows, the second the number of cells.

style Style

The table style.

Returns

Table

The added Table.

AddTable(string[][])

Adds a Table to the end of the cell.

public Table AddTable(string[][] texts)

Parameters

texts string[][]

A two dimensional array of texts to put in the cells. The first dimension determines the number of rows, the second the number of cells.

Returns

Table

The added Table.