Item

Cells indexer (1 of 2)

يحصل على ملفCell عنصر في فهرس صف الخلية المحدد وفهرس العمود.

public Cell this[int row, int column] { get; }
معاملوصف
rowفهرس الصف.
columnفهرس العمود.

قيمة الإرجاع

الCell هدف.

أمثلة

[C#]
Workbook excel = new Workbook();
Cells cells = excel.Worksheets[0].Cells;
Cell cell = cells[0, 0];	// الحصول على الخلية عند "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"

أنظر أيضا


Cells indexer (2 of 2)

يحصل على ملفCell عنصر في اسم الخلية المحدد.

public Cell this[string cellName] { get; }
معاملوصف
cellNameاسم الخلية ، بما في ذلك حرف العمود ورقم الصف ، على سبيل المثال A5.

قيمة الإرجاع

أCell هدف

أمثلة

[C#]
Workbook excel = new Workbook();
Cells cells = excel.Worksheets[0].Cells;
Cell cell = cells["A1"];	// الحصول على الخلية عند "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"

أنظر أيضا