Spread Silverlight Documentation
RowViewportHeightChanged Event (GcSpreadSheet)
Example 


Occurs when a viewport row height has changed.
Syntax
'Declaration
 
Public Event RowViewportHeightChanged As System.EventHandler(Of RowViewportHeightChangedEventArgs)
'Usage
 
Dim instance As GcSpreadSheet
Dim handler As System.EventHandler(Of RowViewportHeightChangedEventArgs)
 
AddHandler instance.RowViewportHeightChanged, handler
public event System.EventHandler<RowViewportHeightChangedEventArgs> RowViewportHeightChanged
Event Data

The event handler receives an argument of type RowViewportHeightChangedEventArgs containing data related to this event. The following RowViewportHeightChangedEventArgs properties provide information specific to this event.

PropertyDescription
DeltaViewportHeightGets the changed value of the viewport row height.  
ViewportIndexGets the index of the viewport row whose height has changed.  
Example
This example uses the RowViewportHeightChanged event.
gcSpreadSheet1.AddRowViewport(0, 80);

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

private void gcSpreadSheet1_RowViewportHeightChanging(object sender, GrapeCity.Windows.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 System.Object, e As GrapeCity.Windows.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 System.Object, e As GrapeCity.Windows.SpreadSheet.UI.RowViewportHeightChangingEventArgs) Handles GcSpreadSheet1.RowViewportHeightChanging
        ListBox1.Items.Add(e.DeltaViewportHeight.ToString())
        ListBox1.Items.Add(e.ViewportIndex.ToString())
    End Sub
Requirements

Target Platforms: Windows 7, Windows 8 Desktop, Windows Vista SP1 or later, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

Reference

GcSpreadSheet Class
GcSpreadSheet Members

 

 


Copyright © GrapeCity, inc. All rights reserved.