C# Класс AODL.Document.Content.Tables.Table

Table represent a table that is used within a spreadsheet document or a TextDocument!
Наследование: IContent, IHtml
Показать файл Открыть проект Примеры использования класса

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

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

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

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

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

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

Adds new form to the forms collection
public AddNewForm ( string name ) : ODFForm
name string Form name
Результат AODL.Document.Forms.ODFForm

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

Builds the node.
public BuildNode ( ) : XmlNode
Результат System.Xml.XmlNode

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

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

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

Looks for a specific control through all the forms by its ID
public FindControlById ( string id ) : ODFFormControl
id string Control ID
Результат AODL.Document.Forms.Controls.ODFFormControl

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

Looks for a specific control through all the forms by its name
public FindControlByName ( string name ) : ODFFormControl
name string
Результат AODL.Document.Forms.Controls.ODFFormControl

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

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

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

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

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

public InsertChartAt ( string cellName, Chart chart ) : void
cellName string
chart AODL.Document.Content.Charts.Chart
Результат void

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

Resets the table node.
public Reset ( ) : void
Результат void

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

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

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

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