Item

Cells indexer (1 of 2)

Obtient leCell élément à l’index de ligne de cellule et à l’index de colonne spécifiés.

public Cell this[int row, int column] { get; }
ParamètreLa description
rowIndice de ligne.
columnIndice de colonne.

Return_Value

LaCell objet.

Exemples

[C#]
Workbook excel = new Workbook();
Cells cells = excel.Worksheets[0].Cells;
Cell cell = cells[0, 0];	// Obtient la cellule à "A1"

[Visual Basic]
Dim excel as Workbook = New Workbook()
Dim cells As Cells =  excel.Worksheets(0).Cells 
Dim cell As Cell =  cells(0,0)  'Gets the cell at "A1"

Voir également


Cells indexer (2 of 2)

Obtient leCell élément au nom de cellule spécifié.

public Cell this[string cellName] { get; }
ParamètreLa description
cellNameNom de la cellule, y compris sa lettre de colonne et son numéro de ligne, par exemple A5.

Return_Value

UNCell objet

Exemples

[C#]
Workbook excel = new Workbook();
Cells cells = excel.Worksheets[0].Cells;
Cell cell = cells["A1"];	// Obtient la cellule à "A1"

[Visual Basic]
Dim excel as Workbook = New Workbook()
Dim cells As Cells =  excel.Worksheets(0).Cells 
Dim cell As Cell =  cells("A1")  'Gets the cell at "A1"

Voir également