C# Класс 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.
Наследование: IContent, IHtml
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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.

Описание методов

GetCellIndex() публичный Метод

Gets the index of the cell.
public GetCellIndex ( Cell cell ) : int
cell Cell The cell.
Результат int

GetHtml() публичный Метод

Return the content as Html string
public GetHtml ( ) : string
Результат string

InsertCellAt() публичный Метод

Inserts the cell at the given zero based position.
public InsertCellAt ( int position, Cell cell ) : void
position int The position.
cell Cell The cell.
Результат void

MergeCells() публичный Метод

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].
Результат void

Row() публичный Метод

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.
Результат System

Row() публичный Метод

Initializes a new instance of the Row class.
public Row ( Table table ) : System
table Table The table.
Результат System

Row() публичный Метод

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.
Результат System