Spread Windows Forms 13.0 Product Documentation
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / SheetView Class / SelectionCount Property
Example


In This Topic
    SelectionCount Property (SheetView)
    In This Topic
    Gets the number of selections on this sheet.
    Syntax
    'Declaration
     
    Public ReadOnly Property SelectionCount As Integer
    'Usage
     
    Dim instance As SheetView
    Dim value As Integer
     
    value = instance.SelectionCount
    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.
    fpSpread1.ActiveSheet.AddSelection(0, 0, 2, 2);
    fpSpread1.ActiveSheet.AddSelection(3, 0, 2, 2);
    listBox1.Items.Add(fpSpread1.ActiveSheet.SelectionCount.ToString());
    FpSpread1.ActiveSheet.AddSelection(0, 0, 2, 2)
    FpSpread1.ActiveSheet.AddSelection(3, 0, 2, 2)
    ListBox1.Items.Add(FpSpread1.ActiveSheet.SelectionCount.ToString())
    See Also