Syncfusion.XlsIO.Base
Example 


True to set as top left cell.

Activate(Boolean) Method

Activates the cell and its worksheet.
Syntax
'Declaration
 
Overloads Function Activate( _
   ByVal scroll As Boolean _
) As IRange
'Usage
 
Dim instance As IRange
Dim scroll As Boolean
Dim value As IRange
 
value = instance.Activate(scroll)
IRange Activate( 
   bool scroll
)

Parameters

scroll
True to set as top left cell.

Return Value

Returns the active cell.
Example
The following code illustrates how to activate a Range with scroll flag.
ExcelEngine excelEngine = new ExcelEngine();
IApplication application = excelEngine.Excel;
application.DefaultVersion = ExcelVersion.Excel2013;
IWorkbook workbook = application.Workbooks.Create(1);
IWorksheet worksheet = workbook.Worksheets[0];
            
// Activates 'F1' cell.
worksheet.Range["F1"].Activate(true);
            
workbook.SaveAs("Activate.xlsx");
workbook.Close();
excelEngine.Dispose();
AssemblyVersion

Syncfusion.XlsIO.Base: 17.2460.0.34

See Also