TableCellStructure Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a cell in a table.
public ref class TableCellStructure : System::Windows::Documents::DocumentStructures::SemanticBasicElement, System::Collections::Generic::IEnumerable<System::Windows::Documents::DocumentStructures::BlockElement ^>, System::Windows::Markup::IAddChild
public class TableCellStructure : System.Windows.Documents.DocumentStructures.SemanticBasicElement, System.Collections.Generic.IEnumerable<System.Windows.Documents.DocumentStructures.BlockElement>, System.Windows.Markup.IAddChild
type TableCellStructure = class
inherit SemanticBasicElement
interface seq<BlockElement>
interface IEnumerable
interface IAddChild
Public Class TableCellStructure
Inherits SemanticBasicElement
Implements IAddChild, IEnumerable(Of BlockElement)
- Inheritance
- Implements
Examples
The following example shows the <TableCellStructure> part of an XML Paper Specification (XPS) document.
<TableStructure>
<TableRowGroupStructure>
<TableRowStructure>
<TableCellStructure>
<ParagraphStructure>
<NamedElement NameReference="R1C1P1" />
</ParagraphStructure>
</TableCellStructure>
<TableCellStructure>
<ParagraphStructure>
<NamedElement NameReference="R1C2P1" />
</ParagraphStructure>
</TableCellStructure>
</TableRowStructure>
<TableRowStructure>
<TableCellStructure>
<ParagraphStructure>
<NamedElement NameReference="R2C1P1" />
</ParagraphStructure>
</TableCellStructure>
<TableCellStructure>
<ParagraphStructure>
<NamedElement NameReference="R2C2P1" />
</ParagraphStructure>
<ParagraphStructure>
<NamedElement NameReference="R2C2P2" />
</ParagraphStructure>
</TableCellStructure>
</TableRowStructure>
<TableRowStructure>
<TableCellStructure>
<ParagraphStructure>
<NamedElement NameReference="R3C1P1" />
</ParagraphStructure>
</TableCellStructure>
<TableCellStructure>
<ParagraphStructure>
<NamedElement NameReference="R3C2P1" />
</ParagraphStructure>
</TableCellStructure>
</TableRowStructure>
<TableRowStructure>
<TableCellStructure>
<ParagraphStructure>
<NamedElement NameReference="R4C1P1" />
</ParagraphStructure>
</TableCellStructure>
<TableCellStructure>
<ParagraphStructure>
<NamedElement NameReference="R4C2P1" />
</ParagraphStructure>
</TableCellStructure>
</TableRowStructure>
<TableRowStructure>
<TableCellStructure>
<ParagraphStructure>
<NamedElement NameReference="R5C1P1" />
</ParagraphStructure>
</TableCellStructure>
<TableCellStructure>
<ParagraphStructure>
<NamedElement NameReference="R5C2P1" />
</ParagraphStructure>
</TableCellStructure>
</TableRowStructure>
</TableRowGroupStructure>
</TableStructure>
Remarks
Only a TableRowStructure can be the parent of a TableCellStructure.
Constructors
| Name | Description |
|---|---|
| TableCellStructure() |
Initializes a new instance of the TableCellStructure class. |
Properties
| Name | Description |
|---|---|
| ColumnSpan |
Gets or sets the number of columns spanned by the cell. |
| RowSpan |
Gets or sets the number of rows spanned by the cell. |
Methods
| Name | Description |
|---|---|
| Add(BlockElement) |
Adds a block element to the table cell. |
Explicit Interface Implementations
| Name | Description |
|---|---|
| IAddChild.AddChild(Object) |
Adds a child object to the TableCellStructure. |
| IAddChild.AddText(String) |
Adds the text content of a node to the object. |
| IEnumerable.GetEnumerator() |
This API is not implemented. |
| IEnumerable<BlockElement>.GetEnumerator() |
This API is not implemented. |