GrapeCity.Xaml.SpreadSheet.UI
ViewportIndex Property (RowViewportHeightChangingEventArgs)
Example 


GrapeCity.Xaml.SpreadSheet.UI Namespace > RowViewportHeightChangingEventArgs Class : ViewportIndex Property
Gets the index of the viewport row whose height is changing.
Syntax
'Declaration
 
Public ReadOnly Property ViewportIndex As Integer
'Usage
 
Dim instance As RowViewportHeightChangingEventArgs
Dim value As Integer
 
value = instance.ViewportIndex
public int ViewportIndex {get;}

Property Value

The index of the viewport row whose height is changing.
Example
This example uses the ViewportIndex property.
gcSpreadSheet1.AddRowViewport(0, 80);

private void gcSpreadSheet1_RowViewportHeightChanged(object sender, GrapeCity.Xaml.SpreadSheet.UI.RowViewportHeightChangedEventArgs e)
        {
            listBox1.Items.Add(e.DeltaViewportHeight.ToString());
            listBox1.Items.Add(e.ViewportIndex.ToString());
        }

private void gcSpreadSheet1_RowViewportHeightChanging(object sender, GrapeCity.Xaml.SpreadSheet.UI.RowViewportHeightChangingEventArgs e)
        {
            listBox1.Items.Add(e.DeltaViewportHeight.ToString());
            listBox1.Items.Add(e.ViewportIndex.ToString());
        }
GcSpreadSheet1.AddRowViewport(0, 80)
  
Private Sub GcSpreadSheet1_RowViewportHeightChanged(sender As Object, e As GrapeCity.Xaml.SpreadSheet.UI.RowViewportHeightChangedEventArgs) Handles GcSpreadSheet1.RowViewportHeightChanged
        ListBox1.Items.Add(e.DeltaViewportHeight.ToString())
        ListBox1.Items.Add(e.ViewportIndex.ToString())
    End Sub

Private Sub GcSpreadSheet1_RowViewportHeightChanging(sender As Object, e As GrapeCity.Xaml.SpreadSheet.UI.RowViewportHeightChangingEventArgs) Handles GcSpreadSheet1.RowViewportHeightChanging
        ListBox1.Items.Add(e.DeltaViewportHeight.ToString())
        ListBox1.Items.Add(e.ViewportIndex.ToString())
    End Sub
See Also

Reference

RowViewportHeightChangingEventArgs Class
RowViewportHeightChangingEventArgs Members