C# Class AODL.Document.Content.Tables.Row

Row represent a row within a table. If the row is part of a table which is used in a text document, then Cell merging is possible.
Inheritance: IContent, IHtml
Datei anzeigen Open project: monsterlabs/HumanRightsTracker Class Usage Examples

Public Methods

Method Description
GetCellIndex ( Cell cell ) : int

Gets the index of the cell.

GetHtml ( ) : string

Return the content as Html string

InsertCellAt ( int position, Cell cell ) : void

Inserts the cell at the given zero based position.

MergeCells ( AODL document, int cellStartIndex, int mergeCells, bool mergeContent ) : void

Merge cells. This is only possible if the rows table is part of a text document.

Row ( IDocument document, XmlNode node ) : System

Initializes a new instance of the Row class.

Row ( Table table ) : System

Initializes a new instance of the Row class.

Row ( Table table, string styleName ) : System

Initializes a new instance of the Row class.

Private Methods

Method Description
CellCollection_Inserted ( int index, object value ) : void

Cells the collection_ inserted.

CellCollection_Removed ( int index, object value ) : void

Cells the collection_ removed.

CellSpanCollection_Inserted ( int index, object value ) : void

Cells the span collection_ inserted.

CellSpanCollection_Removed ( int index, object value ) : void

Cells the span collection_ removed.

CreateAttribute ( string name, string text, string prefix ) : void

Create a XmlAttribute for propertie XmlNode.

GetRowIndex ( ) : int

Gets the index of the row.

InitStandards ( ) : void

Inits the standards.

NewXmlNode ( string styleName ) : void

Create a new Xml node.

Row_OnRowChanged ( int rowNumber, int cellCount ) : void

After a row size changed all rows before the changed row maybe need to be resized. This also belongs to the columns.

Method Details

GetCellIndex() public method

Gets the index of the cell.
public GetCellIndex ( Cell cell ) : int
cell Cell The cell.
return int

GetHtml() public method

Return the content as Html string
public GetHtml ( ) : string
return string

InsertCellAt() public method

Inserts the cell at the given zero based position.
public InsertCellAt ( int position, Cell cell ) : void
position int The position.
cell Cell The cell.
return void

MergeCells() public method

Merge cells. This is only possible if the rows table is part of a text document.
public MergeCells ( AODL document, int cellStartIndex, int mergeCells, bool mergeContent ) : void
document AODL The TextDocument this row belongs to.
cellStartIndex int Start index of the cell.
mergeCells int The count of cells to merge incl. the starting cell.
mergeContent bool if set to true [merge content].
return void

Row() public method

Initializes a new instance of the Row class.
public Row ( IDocument document, XmlNode node ) : System
document IDocument The document.
node System.Xml.XmlNode The node.
return System

Row() public method

Initializes a new instance of the Row class.
public Row ( Table table ) : System
table Table The table.
return System

Row() public method

Initializes a new instance of the Row class.
public Row ( Table table, string styleName ) : System
table Table The table.
styleName string Name of the style.
return System