CellRange Activate Method |
Name | Description | |
---|---|---|
![]() |
Activate |
Active single cell in the worksheet
|
![]() ![]() |
Activate(Boolean) |
Activates a single cell, scroll to it and activates the corresponding sheet.
To select a range of cells, use the Select method.
(Inherited from
XlsRange
.)
![]()
The following code illustrates how to activate a Range with scroll flag:
<para>//Create worksheet</para><para>Workbook workbook = new Workbook();</para><para>Worksheet worksheet = workbook.Worksheets[0];</para><para>//Activates 'F1' cell.</para><para>worksheet.Range["F1"].Activate(true);</para><para>//Save to file</para><para>workbook.SaveToFile("Activate.xlsx");</para>
|