GrapeCity.Xaml.SpreadSheet.UI
OldIndex Property
Example 


Gets the index of the previous viewport index.
Syntax
'Declaration
 
Public ReadOnly Property OldIndex As Integer
'Usage
 
Dim instance As ViewportEventArgs
Dim value As Integer
 
value = instance.OldIndex
public int OldIndex {get;}

Property Value

The index of the previous viewport index.
Example
This example uses the OldIndex property.
private void gcSpreadSheet1_LeftColumnChanged(object sender, GrapeCity.Xaml.SpreadSheet.UI.ViewportEventArgs e)
        {
            listBox1.Items.Add(e.OldIndex.ToString());
            listBox1.Items.Add(e.NewIndex.ToString());
        }

        private void gcSpreadSheet1_TopRowChanged(object sender, GrapeCity.Xaml.SpreadSheet.UI.ViewportEventArgs e)
        {
            listBox1.Items.Add(e.OldIndex.ToString());
            listBox1.Items.Add(e.NewIndex.ToString());
        }
Private Sub gcSpreadSheet1_LeftColumnChanged(sender As Object, e As GrapeCity.Xaml.SpreadSheet.UI.ViewportEventArgs) Handles gcSpreadSheet1.LeftColumnChanged
        ListBox1.Items.Add(e.OldIndex.ToString())
        ListBox1.Items.Add(e.NewIndex.ToString())
    End Sub

    Private Sub gcSpreadSheet1_TopRowChanged(sender As Object, e As GrapeCity.Xaml.SpreadSheet.UI.ViewportEventArgs) Handles gcSpreadSheet1.TopRowChanged
        ListBox1.Items.Add(e.OldIndex.ToString())
        ListBox1.Items.Add(e.NewIndex.ToString())
    End Sub
Requirements

Target Platforms: Windows Server 2012, Windows RT

See Also

Reference

ViewportEventArgs Class
ViewportEventArgs Members

 

 


Copyright © GrapeCity, inc. All rights reserved.

Support Options