Spread Windows Forms 7.0 Product Documentation
SelectionCount Property
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class : SelectionCount Property


Glossary Item Box

Gets the number of selections on this sheet.

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property SelectionCount As Integer
Visual Basic (Usage)Copy Code
Dim instance As SheetView
Dim value As Integer
 
value = instance.SelectionCount
C# 
public int SelectionCount {get;}

Property Value

Integer number of selections on the sheet

Remarks

This property is available at run time only.

Example

This example illustrates the use of this member by returning the number of selections in the sheet.
C#Copy Code
fpSpread1.ActiveSheet.AddSelection(0, 0, 2, 2);
fpSpread1.ActiveSheet.AddSelection(3, 0, 2, 2);
listBox1.Items.Add(fpSpread1.ActiveSheet.SelectionCount.ToString());
Visual BasicCopy Code
FpSpread1.ActiveSheet.AddSelection(0, 0, 2, 2)
FpSpread1.ActiveSheet.AddSelection(3, 0, 2, 2)
ListBox1.Items.Add(FpSpread1.ActiveSheet.SelectionCount.ToString())

Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

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