Spread Windows Forms 6.0 Product Documentation
RowHeightChanged Event
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > FpSpread Class : RowHeightChanged Event


Glossary Item Box

Occurs when the row height has changed.

Syntax

Visual Basic (Declaration) 
Public Event RowHeightChanged As RowHeightChangedEventHandler
Visual Basic (Usage)Copy Code
Dim instance As FpSpread
Dim handler As RowHeightChangedEventHandler
 
AddHandler instance.RowHeightChanged, handler
C# 
public event RowHeightChangedEventHandler RowHeightChanged

Event Data

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

PropertyDescription
Footer Gets whether the row indexes are column footer rows.
Header Gets whether the row indexes are column header rows.
RowList Gets the list of rows whose heights have changed.
View Gets the view that contains the rows whose heights have changed.

Remarks

This event is raised by the OnRowHeight method when the height of a row of cells has changed.

For more details on the individual event arguments, refer to RowHeightChangedEventArgs members.

If you want to catch the event of a user changing the height of the rows in the column header, you need to map the SheetView.DocumentModels class, ColumnHeaderRowAxis Property property, Changed event.

Example

This example raises the event.
C#Copy Code
private void fpSpread1_RowHeightChanged(object sender, FarPoint.Win.Spread.RowHeightChangedEventArgs e)
{
     ListBox1.Items.Add("RowHeightChanged event fired!");
}
Visual BasicCopy Code
Private Sub FpSpread1_RowHeightChanged(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.RowHeightChangedEventArgs) Handles
FpSpread1.RowHeightChanged
     ListBox1.Items.Add("RowHeightChanged event fired!")
End Sub

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.