Back to Devexpress

RangeExtensions.Select(CellRange) Method

officefileapi-devexpress-dot-spreadsheet-dot-rangeextensions-dot-select-x28-devexpress-dot-spreadsheet-dot-cellrange-x29.md

latest2.1 KB
Original Source

RangeExtensions.Select(CellRange) Method

Selects the cell range.

Namespace : DevExpress.Spreadsheet

Assembly : DevExpress.Spreadsheet.v25.2.Core.dll

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
public static void Select(
    this CellRange range
)
vb
<ExtensionAttribute>
Public Shared Sub Select(
    range As CellRange
)

Parameters

NameTypeDescription
rangeCellRange

The cell range to select.

|

Remarks

The Select method is an extension method of the CellRange interface. You can call extension methods in the same way as instance methods of the CellRange object.

The following example demonstrates how to select the cell range “A2:C4”:

csharp
Worksheet worksheet = workbook.Worksheets[0];
worksheet["A2:C4"].Select();
vb
Dim worksheet As Worksheet = workbook.Worksheets(0)
worksheet("A2:C4").Select()

You can also use the following API members to select cells in a worksheet:

See Also

RangeExtensions Class

RangeExtensions Members

DevExpress.Spreadsheet Namespace