GrapeCity.Xaml.SpreadSheet.UI
NewSelections Property
Example 


Gets the new selection ranges.
Syntax
'Declaration
 
Public ReadOnly Property NewSelections As CellRange()
'Usage
 
Dim instance As SelectionChangingEventArgs
Dim value() As CellRange
 
value = instance.NewSelections
public CellRange[] NewSelections {get;}

Property Value

The new selection ranges.
Example
This example uses the NewSelections property.
private void gcSpreadSheet1_SelectionChanged(object sender, EventArgs e)
        {
            listBox1.Items.Add("SelectionChanged");
        }

private void gcSpreadSheet1_SelectionChanging(object sender, GrapeCity.Xaml.SpreadSheet.UI.SelectionChangingEventArgs e)
        {
            listBox1.Items.Add(e.NewSelections[0].Column.ToString());
            listBox1.Items.Add(e.OldSelections.Length.ToString());
        }
Private Sub GcSpreadSheet1_SelectionChanged(sender As Object, e As System.EventArgs) Handles GcSpreadSheet1.SelectionChanged
        ListBox1.Items.Add("SelectionChanged")
    End Sub

    Private Sub GcSpreadSheet1_SelectionChanging(sender As Object, e As GrapeCity.Xaml.SpreadSheet.UI.SelectionChangingEventArgs) Handles GcSpreadSheet1.SelectionChanging
        ListBox1.Items.Add(e.NewSelections(0).Column.ToString())
        ListBox1.Items.Add(e.OldSelections.Length.ToString())
    End Sub
Requirements

Target Platforms: Windows Server 2012, Windows RT

See Also

Reference

SelectionChangingEventArgs Class
SelectionChangingEventArgs Members

 

 


Copyright © GrapeCity, inc. All rights reserved.

Support Options