Spread ASP.NET 6.0 Product Documentation
Changed Event
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread.Model Namespace > BaseSheetAxisModel Class : Changed Event


Glossary Item Box

Occurs when the user makes a change to the model that affects the axis (row or column) of the sheet.

Syntax

Visual Basic (Declaration) 
Public Event Changed As SheetAxisModelEventHandler
Visual Basic (Usage)Copy Code
Dim instance As BaseSheetAxisModel
Dim handler As SheetAxisModelEventHandler
 
AddHandler instance.Changed, handler
C# 
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.

PropertyDescription
Count Gets the number of items being affected.
Index Gets the index where the event happens.
Type Gets the event type.

Example

This example adds a handler for the changed event for the model.
C#Copy Code
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)
{
Response.Write(e.Type.ToString())
}
Visual BasicCopy Code
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
Response.Write(e.Type.ToString)
End Sub

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2002-2012 GrapeCity, Inc. All Rights Reserved.