Spread Windows Forms 12.0 Product Documentation
CustomNameChanged Event (FpSpread)

FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > FpSpread Class : CustomNameChanged Event
Occurs when the custom name of the data model changes.
Public Event CustomNameChanged As CustomNameEventHandle
Dim instance As FpSpread
Dim handler As CustomNameEventHandle
AddHandler instance.CustomNameChanged, handler
public event CustomNameEventHandle CustomNameChanged
Event Data

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

Gets the type of the custom name that has changed.  
This example uses the CustomNameChanged event.
FarPoint.Win.Spread.Model.DefaultSheetDataModel d;
d = (FarPoint.Win.Spread.Model.DefaultSheetDataModel)fpSpread1.Sheets[0].Models.Data;
d.AddCustomName("alpha", "101", 0, 0);

private void fpSpread1_CustomNameChanged(object sender, FarPoint.Win.Spread.CustomNameChangedEventArgs e)
Dim d As FarPoint.Win.Spread.Model.DefaultSheetDataModel
d = DirectCast(FpSpread1.Sheets(0).Models.Data, FarPoint.Win.Spread.Model.DefaultSheetDataModel)
d.AddCustomName("alpha", "101", 0, 0)

Private Sub FpSpread1_CustomNameChanged(sender As Object, e As FarPoint.Win.Spread.CustomNameChangedEventArgs) Handles FpSpread1.CustomNameChanged
End Sub
See Also