Spread Windows Forms 6.0 Product Documentation
IsSelected Method
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class : IsSelected Method

Row index
Column index

Glossary Item Box

Gets whether the specified cell on this sheet is selected.


Visual Basic (Declaration) 
Public Function IsSelected( _
   ByVal row As Integer, _
   ByVal column As Integer _
) As Boolean
Visual Basic (Usage)Copy Code
Dim instance As SheetView
Dim row As Integer
Dim column As Integer
Dim value As Boolean
value = instance.IsSelected(row, column)
public bool IsSelected( 
   int row,
   int column


Row index
Column index

Return Value

Boolean: true if the cell is selected; false otherwise


If this method is called for the active cell and there are no selections, the method returns true.


This example illustrates the use of this member by returning if the specified cell is selected.
C#Copy Code
bool b;
fpSpread1.ActiveSheet.AddSelection(0, 0, 4, 4);
b = fpSpread1.ActiveSheet.IsSelected(3, 3);
label1.Text = "Is cell 3, 3 selected = " + b.ToString();
Visual BasicCopy Code
Dim b As Boolean
FpSpread1.ActiveSheet.AddSelection(0, 0, 4, 4)
b = FpSpread1.ActiveSheet.IsSelected(3, 3)
Label1.Text = "Is cell 3, 3 selected = " & b.ToString()


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

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.