SpreadsheetGear 2017
SetSelection(IRange,IRange,Int32) Method






SpreadsheetGear Namespace > IWorksheetWindowInfo Interface > SetSelection Method : SetSelection(IRange,IRange,Int32) Method
The IRange to select.
The IRange of the active cell.
The index of the area within the selection for the active cell.
Selects the specified range and activates the specified cell.
Syntax
'Declaration
 
Overloads Sub SetSelection( _
   ByVal selection As IRange, _
   ByVal activeCell As IRange, _
   ByVal activeCellAreaIndex As System.Integer _
) 
'Usage
 
Dim instance As IWorksheetWindowInfo
Dim selection As IRange
Dim activeCell As IRange
Dim activeCellAreaIndex As System.Integer
 
instance.SetSelection(selection, activeCell, activeCellAreaIndex)
void SetSelection( 
   IRange selection,
   IRange activeCell,
   System.int activeCellAreaIndex
)
procedure SetSelection( 
    selection: IRange;
    activeCell: IRange;
    activeCellAreaIndex: System.Integer
); 
function SetSelection( 
   selection : IRange,
   activeCell : IRange,
   activeCellAreaIndex : System.int
);
void SetSelection( 
   IRange* selection,
   IRange* activeCell,
   System.int activeCellAreaIndex
) 
void SetSelection( 
   IRange^ selection,
   IRange^ activeCell,
   System.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

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

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