Spread Windows Forms 10.0 Product Documentation
ColumnViewportWidthChanged Event
Example 


Occurs when a viewport column width has changed.
Syntax
'Declaration
 
Public Event ColumnViewportWidthChanged As ColumnViewportWidthChangedEventHandler
'Usage
 
Dim instance As FpSpread
Dim handler As ColumnViewportWidthChangedEventHandler
 
AddHandler instance.ColumnViewportWidthChanged, handler
public event ColumnViewportWidthChangedEventHandler ColumnViewportWidthChanged
Event Data

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

PropertyDescription
ViewGets the view that contains the viewport column whose width has changed.  
ViewportIndexGets the index of the viewport column whose width has changed.  
ViewportWidthGets the width of the viewport column whose width has changed.  
Remarks

This event is raised by the OnColumnViewportWidthChanged method when  a viewport column width has changed.

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

Example
This example raises the event.
private void fpSpread1_ColumnViewportWidthChanged(object sender, FarPoint.Win.Spread.ColumnViewportWidthChangedEventArgs e)
{
     ListBox1.Items.Add("ColumnViewportWidthChanged event fired!");
}
Private Sub FpSpread1_ColumnViewportWidthChanged(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.ColumnViewportWidthChangedEventArgs)
Handles FpSpread1.ColumnViewportWidthChanged
     ListBox1.Items.Add("ColumnViewportWidthChanged event fired!")
End Sub
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

FpSpread Class
FpSpread Members
ColumnViewportWidthChangedEventArgs Class

User-Task Documentation

Customizing Viewports

 

 


Copyright © GrapeCity, inc. All rights reserved.