See Also

IWorksheetWindowInfo Interface  | IWorksheetWindowInfo Members  | Overload List  | WindowInfo Property  | ActiveCell Property  | ActiveCellAreaIndex Property  | RangeSelection Property  | Activate Method  | Select Method  | SetSelection(IShapeRange,Boolean) Method

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Language

Visual Basic

C#

C++

C++/CLI

Show All

selection
The IRange to select.
activeCell
The IRange of the active cell.
activeCellAreaIndex
The index of the area within the selection for the active cell.
See Also Languages SpreadsheetGear The Performance Spreadsheet Component Company 

SetSelection(IRange,IRange,Int32) Method

SpreadsheetGear Namespace > IWorksheetWindowInfo Interface > SetSelection Method : SetSelection(IRange,IRange,Int32) Method

Selects the specified range and activates the specified cell.

[Visual Basic]
Overloads Overridable Sub SetSelection( _    ByVal selection As IRange, _    ByVal activeCell As IRange, _    ByVal activeCellAreaIndex As Integer _ )
[C#]
virtual void SetSelection(    IRange selection,    IRange activeCell,    int activeCellAreaIndex );
[C++]
virtual void SetSelection(    IRange* selection,    IRange* activeCell,    int activeCellAreaIndex )
[C++/CLI]
virtual void SetSelection(    IRange^ selection,    IRange^ activeCell,    int activeCellAreaIndex )

Parameters

selection
The IRange to select.
activeCell
The IRange of the active cell.
activeCellAreaIndex
The index of the area within the selection for the active cell.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

IWorksheetWindowInfo Interface  | IWorksheetWindowInfo Members  | Overload List  | WindowInfo Property  | ActiveCell Property  | ActiveCellAreaIndex Property  | RangeSelection Property  | Activate Method  | Select Method  | SetSelection(IShapeRange,Boolean) Method

 

 


See our live Excel Reporting, Excel Charting, Excel to DataGrid and Excel Calculation Samples.

Copyright © 2003-2007 SpreadsheetGear LLC. All Rights Reserved.

SpreadsheetGear and Spreadsheet Gear are trademarks of SpreadsheetGear LLC.