TableCellStructure TableCellStructure TableCellStructure TableCellStructure Class

Definition

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 IAddChild
    interface seq<BlockElement>
    interface IEnumerable
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

TableCellStructure() TableCellStructure() TableCellStructure() TableCellStructure()

Initializes a new instance of the TableCellStructure class.

Properties

ColumnSpan ColumnSpan ColumnSpan ColumnSpan

Gets or sets the number of columns spanned by the cell.

RowSpan RowSpan RowSpan RowSpan

Gets or sets the number of rows spanned by the cell.

Methods

Add(BlockElement) Add(BlockElement) Add(BlockElement) Add(BlockElement)

Adds a block element to the table cell.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Explicit Interface Implementations

IAddChild.AddChild(Object) IAddChild.AddChild(Object) IAddChild.AddChild(Object) IAddChild.AddChild(Object)

Adds a child object to the TableCellStructure.

IAddChild.AddText(String) IAddChild.AddText(String) IAddChild.AddText(String) IAddChild.AddText(String)

Adds the text content of a node to the object.

IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator()

This API is not implemented.

IEnumerable<BlockElement>.GetEnumerator() IEnumerable<BlockElement>.GetEnumerator() IEnumerable<BlockElement>.GetEnumerator() IEnumerable<BlockElement>.GetEnumerator()

This API is not implemented.

Extension Methods

CopyToDataTable<T>(IEnumerable<T>) CopyToDataTable<T>(IEnumerable<T>) CopyToDataTable<T>(IEnumerable<T>) CopyToDataTable<T>(IEnumerable<T>)

Returns a DataTable that contains copies of the DataRow objects, given an input IEnumerable<T> object where the generic parameter T is DataRow.

CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption)

Copies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter T is DataRow.

CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler)

Copies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter T is DataRow.

Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable)

Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable)

Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable)

Enables parallelization of a query.

AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable)

Converts an IEnumerable to an IQueryable.

Ancestors<T>(IEnumerable<T>) Ancestors<T>(IEnumerable<T>) Ancestors<T>(IEnumerable<T>) Ancestors<T>(IEnumerable<T>)

Returns a collection of elements that contains the ancestors of every node in the source collection.

Ancestors<T>(IEnumerable<T>, XName) Ancestors<T>(IEnumerable<T>, XName) Ancestors<T>(IEnumerable<T>, XName) Ancestors<T>(IEnumerable<T>, XName)

Returns a filtered collection of elements that contains the ancestors of every node in the source collection. Only elements that have a matching XName are included in the collection.

DescendantNodes<T>(IEnumerable<T>) DescendantNodes<T>(IEnumerable<T>) DescendantNodes<T>(IEnumerable<T>) DescendantNodes<T>(IEnumerable<T>)

Returns a collection of the descendant nodes of every document and element in the source collection.

Descendants<T>(IEnumerable<T>) Descendants<T>(IEnumerable<T>) Descendants<T>(IEnumerable<T>) Descendants<T>(IEnumerable<T>)

Returns a collection of elements that contains the descendant elements of every element and document in the source collection.

Descendants<T>(IEnumerable<T>, XName) Descendants<T>(IEnumerable<T>, XName) Descendants<T>(IEnumerable<T>, XName) Descendants<T>(IEnumerable<T>, XName)

Returns a filtered collection of elements that contains the descendant elements of every element and document in the source collection. Only elements that have a matching XName are included in the collection.

Elements<T>(IEnumerable<T>) Elements<T>(IEnumerable<T>) Elements<T>(IEnumerable<T>) Elements<T>(IEnumerable<T>)

Returns a collection of the child elements of every element and document in the source collection.

Elements<T>(IEnumerable<T>, XName) Elements<T>(IEnumerable<T>, XName) Elements<T>(IEnumerable<T>, XName) Elements<T>(IEnumerable<T>, XName)

Returns a filtered collection of the child elements of every element and document in the source collection. Only elements that have a matching XName are included in the collection.

InDocumentOrder<T>(IEnumerable<T>) InDocumentOrder<T>(IEnumerable<T>) InDocumentOrder<T>(IEnumerable<T>) InDocumentOrder<T>(IEnumerable<T>)

Returns a collection of nodes that contains all nodes in the source collection, sorted in document order.

Nodes<T>(IEnumerable<T>) Nodes<T>(IEnumerable<T>) Nodes<T>(IEnumerable<T>) Nodes<T>(IEnumerable<T>)

Returns a collection of the child nodes of every document and element in the source collection.

Remove<T>(IEnumerable<T>) Remove<T>(IEnumerable<T>) Remove<T>(IEnumerable<T>) Remove<T>(IEnumerable<T>)

Removes every node in the source collection from its parent node.

Applies to