Spread Windows Forms 11.0 Product Documentation
CustomNameChanged Event (FpSpread)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > FpSpread Class : CustomNameChanged Event
Occurs when the custom name of the data model changes.
Syntax
'Declaration
 
Public Event CustomNameChanged As CustomNameEventHandle
'Usage
 
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.

PropertyDescription
Gets the type of the custom name that has changed.  
Example
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)
      {
          listBox1.Items.Add(e.ActionType);
      }
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
     ListBox1.Items.Add(e.ActionType)
End Sub
See Also