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
Afficher le fichier Open project: monsterlabs/HumanRightsTracker Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

Gets the index of the cell.
public GetCellIndex ( Cell cell ) : int
cell Cell The cell.
Résultat int

GetHtml() public méthode

Return the content as Html string
public GetHtml ( ) : string
Résultat string

InsertCellAt() public méthode

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

MergeCells() public méthode

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].
Résultat void

Row() public méthode

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.
Résultat System

Row() public méthode

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

Row() public méthode

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.
Résultat System