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

Table represent a table that is used within a spreadsheet document or a TextDocument!
Inheritance: IContent, IHtml
Exibir arquivo Open project: monsterlabs/HumanRightsTracker Class Usage Examples

Public Methods

Method Description
AddNewForm ( string name ) : ODFForm

Adds new form to the forms collection

BuildNode ( ) : XmlNode

Builds the node.

CreateCell ( ) : Cell

Create a new cell within this table which use the standard style. The cell isn't part of the table until you insert it via the InsertCellAt(int rowIndex, int columnIndex, Cell cell)

FindControlById ( string id ) : ODFFormControl

Looks for a specific control through all the forms by its ID

FindControlByName ( string name ) : ODFFormControl

Looks for a specific control through all the forms by its name

GetHtml ( ) : string

Return the content as Html string

InsertCellAt ( int rowIndex, int columnIndex, Cell cell ) : void

Inserts the cell at the specified position. The RowCollection, the rows CellCollection and the ColumnCollection will be resized automatically.

InsertChartAt ( string cellName, Chart chart ) : void
Reset ( ) : void

Resets the table node.

Table ( IDocument document, XmlNode node ) : System

Initializes a new instance of the Table class.

Table ( IDocument document, string name, string styleName ) : System

Initializes a new instance of the Table class.

Private Methods

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

Create a XmlAttribute for propertie XmlNode.

FormCollection_Removed ( int index, object value ) : void
FormsCollection_Clear ( ) : void
NewXmlNode ( string name, string styleName ) : void

Create a new Xml node.

Method Details

AddNewForm() public method

Adds new form to the forms collection
public AddNewForm ( string name ) : ODFForm
name string Form name
return AODL.Document.Forms.ODFForm

BuildNode() public method

Builds the node.
public BuildNode ( ) : XmlNode
return System.Xml.XmlNode

CreateCell() public method

Create a new cell within this table which use the standard style. The cell isn't part of the table until you insert it via the InsertCellAt(int rowIndex, int columnIndex, Cell cell)
public CreateCell ( ) : Cell
return Cell

FindControlById() public method

Looks for a specific control through all the forms by its ID
public FindControlById ( string id ) : ODFFormControl
id string Control ID
return AODL.Document.Forms.Controls.ODFFormControl

FindControlByName() public method

Looks for a specific control through all the forms by its name
public FindControlByName ( string name ) : ODFFormControl
name string
return AODL.Document.Forms.Controls.ODFFormControl

GetHtml() public method

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

InsertCellAt() public method

Inserts the cell at the specified position. The RowCollection, the rows CellCollection and the ColumnCollection will be resized automatically.
public InsertCellAt ( int rowIndex, int columnIndex, Cell cell ) : void
rowIndex int Index of the row.
columnIndex int Index of the column.
cell Cell The cell.
return void

InsertChartAt() public method

public InsertChartAt ( string cellName, Chart chart ) : void
cellName string
chart AODL.Document.Content.Charts.Chart
return void

Reset() public method

Resets the table node.
public Reset ( ) : void
return void

Table() public method

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

Table() public method

Initializes a new instance of the Table class.
public Table ( IDocument document, string name, string styleName ) : System
document IDocument The spreadsheet document.
name string The name.
styleName string Name of the style.
return System