Spread Windows Forms 13.0 Product Documentation
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / FpSpread Class / ColumnViewportWidthChanged Event

In This Topic
    ColumnViewportWidthChanged Event
    In This Topic
    Occurs when a viewport column width has changed.
    Public Event ColumnViewportWidthChanged As ColumnViewportWidthChangedEventHandler
    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.

    Gets the view that contains the viewport column whose width has changed.  
    Gets the index of the viewport column whose width has changed.  
    Gets the width of the viewport column whose width has changed.  

    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.

    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
    See Also