Spread for ASP.NET 13 Product Documentation
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread.Model Namespace / BaseSheetAxisModel Class / Changed Event

In This Topic
    Changed Event (BaseSheetAxisModel)
    In This Topic
    Occurs when the user makes a change to the model that affects the axis (row or column) of the sheet.
    Public Event Changed As SheetAxisModelEventHandler
    Dim instance As BaseSheetAxisModel
    Dim handler As SheetAxisModelEventHandler
    AddHandler instance.Changed, handler
    public event SheetAxisModelEventHandler Changed
    Event Data

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

    Gets the number of items being affected.  
    Gets the index where the event happens.  
    Gets the event type.  
    This example adds a handler for the changed event for the model.
    FarPoint.Web.Spread.Model.BaseSheetAxisModel b;
    b = (FarPoint.Web.Spread.Model.BaseSheetAxisModel)FpSpread1.ActiveSheetView.ColumnAxisModel;
    b.SetSize(0, 120);
    b.Changed += new FarPoint.Web.Spread.Model.SheetAxisModelEventHandler(bChanged);
    private void bChanged(object sender, FarPoint.Web.Spread.Model.SheetAxisModelEventArgs e)
    Dim WithEvents b As FarPoint.Web.Spread.Model.BaseSheetAxisModel
    b = FpSpread1.ActiveSheetView.ColumnAxisModel
    b.SetSize(0, 180)
    Private Sub bChanged(ByVal sender As Object, ByVal e As FarPoint.Web.Spread.Model.SheetAxisModelEventArgs) Handles b.Changed
    End Sub
    See Also