officefileapi-devexpress-dot-spreadsheet-dot-cellrange-30324e3a.md
Gets the index of the row that includes the bottom edge of the cell range.
Namespace : DevExpress.Spreadsheet
Assembly : DevExpress.Spreadsheet.v25.2.Core.dll
NuGet Package : DevExpress.Spreadsheet.Core
int BottomRowIndex { get; }
ReadOnly Property BottomRowIndex As Integer
| Type | Description |
|---|---|
| Int32 |
An integer value specifying the zero-based index of the row.
|
Use the BottomRowIndex , CellRange.TopRowIndex, CellRange.LeftColumnIndex and CellRange.RightColumnIndex properties to get indexes of rows and columns that border the cell range.
To obtain the number of rows or columns in the cell range, use the CellRange.RowCount or CellRange.ColumnCount property, respectively.
The following code snippets (auto-collected from DevExpress Examples) contain references to the BottomRowIndex property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
winforms-spreadsheet-use-custom-cell-editors/CS/DevAVInvoicing/Form1.cs#L183
DefinedName invoiceItems = sheet.DefinedNames.GetDefinedName("InvoiceItems");
int rowIndex = invoiceItems.Range.BottomRowIndex;
sheet.Rows.Insert(rowIndex);
Where(binding => (binding.Range.RightColumnIndex >= bindingRange.LeftColumnIndex)
|| (binding.Range.BottomRowIndex >= bindingRange.TopRowIndex)) ;
if (dataBindingConflicts.Count() > 0) {
spreadsheet-document-api-data-binding/CS/SpreadsheetApiDataBinding/Program.cs#L39
Where(binding => (binding.Range.RightColumnIndex >= bindingRange.LeftColumnIndex)
|| (binding.Range.BottomRowIndex >= bindingRange.TopRowIndex));
if (dataBindingConflicts.Count() > 0)
winforms-spreadsheet-use-custom-cell-editors/VB/DevAVInvoicing/Form1.vb#L170
Dim invoiceItems As DefinedName = sheet.DefinedNames.GetDefinedName("InvoiceItems")
Dim rowIndex As Integer = invoiceItems.Range.BottomRowIndex
sheet.Rows.Insert(rowIndex)
Function(binding)
Return (binding.Range.RightColumnIndex >= bindingRange.LeftColumnIndex) OrElse (binding.Range.BottomRowIndex >= bindingRange.TopRowIndex)
End Function)
spreadsheet-document-api-data-binding/VB/SpreadsheetApiDataBinding/Program.vb#L34
Dim bindingRange As CellRange = worksheet.Range("A1:C5")
Dim dataBindingConflicts = worksheet.DataBindings.Where(Function(binding) (binding.Range.RightColumnIndex >= bindingRange.LeftColumnIndex) OrElse (binding.Range.BottomRowIndex >= bindingRange.TopRowIndex))
If dataBindingConflicts.Count() > 0 Then
See Also
How to: Access a Range of Cells