Class Table
Inheritance
System.Object
Table
Implements
IronSoftware.Abstractions.IDocumentElement
IronSoftware.IDocumentObject
System.ICloneable
System.Collections.Generic.IEnumerable<
TableCell>
System.Collections.IEnumerable
System.Collections.Generic.IEnumerable<
TableRow>
Assembly: IronWord.dll
Syntax
public class Table : TableElements, IDocumentElement, IDocumentObject, ICloneable, IElementContainer<ContentElementCollection, ContentElement>, IEnumerable<TableCell>, IEnumerable, IEnumerable<TableRow>
Constructors
Table()
Declaration
Table(TableRow[])
Declaration
public Table(params TableRow[] rows)
Parameters
Table(Int32, Int32)
Declaration
public Table(int row, int column)
Parameters
Type |
Name |
Description |
System.Int32 |
row |
|
System.Int32 |
column |
|
Properties
Direction
Declaration
public Direction Direction { get; set; }
Property Value
Index
Declaration
public int Index { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Item[Int32]
Declaration
public TableRow this[int row] { get; set; }
Parameters
Type |
Name |
Description |
System.Int32 |
row |
|
Property Value
Item[Int32, Int32]
Declaration
public TableCell this[int row, int column] { get; set; }
Parameters
Type |
Name |
Description |
System.Int32 |
row |
|
System.Int32 |
column |
|
Property Value
MergedCells
Declaration
public List<MergeCell> MergedCells { get; set; }
Property Value
Type |
Description |
System.Collections.Generic.List<MergeCell> |
|
Rows
Declaration
public List<TableRow> Rows { get; }
Property Value
Type |
Description |
System.Collections.Generic.List<TableRow> |
|
Shading
Declaration
public Shading Shading { get; set; }
Property Value
Style
Declaration
public TableStyle Style { get; set; }
Property Value
Width
Declaration
public double Width { get; set; }
Property Value
Type |
Description |
System.Double |
|
Zebra
Declaration
public ZebraColor Zebra { get; set; }
Property Value
Methods
AddColumn()
Declaration
Returns
AddRow(TableRow)
Declaration
public Table AddRow(TableRow row)
Parameters
Returns
GetCell(Int32, Int32)
Declaration
public TableCell GetCell(int row, int column)
Parameters
Type |
Name |
Description |
System.Int32 |
row |
|
System.Int32 |
column |
|
Returns
GetCellValue(Int32, Int32)
Declaration
public List<ContentElement> GetCellValue(int row, int column)
Parameters
Type |
Name |
Description |
System.Int32 |
row |
|
System.Int32 |
column |
|
Returns
GetEnumerator()
Declaration
public IEnumerator<TableCell> GetEnumerator()
Returns
Type |
Description |
System.Collections.Generic.IEnumerator<TableCell> |
|
GetRow(Int32)
Declaration
public TableRow GetRow(int row)
Parameters
Type |
Name |
Description |
System.Int32 |
row |
|
Returns
GetWidth(Units)
Declaration
public double GetWidth(Units measurementUnit)
Parameters
Type |
Name |
Description |
Units |
measurementUnit |
|
Returns
Type |
Description |
System.Double |
|
MergeCells(Int32, Int32, Int32, Int32)
Declaration
public Table MergeCells(int startRow, int startColumn, int endRow, int endColumn)
Parameters
Type |
Name |
Description |
System.Int32 |
startRow |
|
System.Int32 |
startColumn |
|
System.Int32 |
endRow |
|
System.Int32 |
endColumn |
|
Returns
RemoveColumn(Int32)
Declaration
public Table RemoveColumn(int index)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Returns
RemoveRow(Int32)
Declaration
public Table RemoveRow(int index)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Returns
SetCellValue(Int32, Int32, ContentElement)
Declaration
public Table SetCellValue(int row, int column, ContentElement content)
Parameters
Type |
Name |
Description |
System.Int32 |
row |
|
System.Int32 |
column |
|
ContentElement |
content |
|
Returns
SetWidth(Double, Units)
Declaration
public Table SetWidth(double width, Units measurementUnit)
Parameters
Type |
Name |
Description |
System.Double |
width |
|
Units |
measurementUnit |
|
Returns
Split(Int32, Int32, Int32, Int32)
Declaration
public Table Split(int row, int column, int toRow, int toColumn)
Parameters
Type |
Name |
Description |
System.Int32 |
row |
|
System.Int32 |
column |
|
System.Int32 |
toRow |
|
System.Int32 |
toColumn |
|
Returns
Implements
IronSoftware.Abstractions.IDocumentElement
IronSoftware.IDocumentObject
System.ICloneable
IronSoftware.Abstractions.IElementContainer<, >
System.Collections.Generic.IEnumerable<>
System.Collections.IEnumerable
System.Collections.Generic.IEnumerable<>