Spread Windows Forms 12.0 Product Documentation
UserFormulaEntered Event
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > FpSpread Class : UserFormulaEntered Event
Occurs when the user types a formula.
Syntax
'Declaration
 
Public Event UserFormulaEntered As UserFormulaEnteredEventHandler
'Usage
 
Dim instance As FpSpread
Dim handler As UserFormulaEnteredEventHandler
 
AddHandler instance.UserFormulaEntered, handler
public event UserFormulaEnteredEventHandler UserFormulaEntered
Event Data

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

PropertyDescription
Gets the column index of the cell in which the user entered a formula.  
Gets the row index of the cell in which the user entered a formula.  
Gets the main view in which the user entered a formula.  
Remarks

This event is raised by the OnUserFormulaEntered method when the user types in a formula in a cell.

For more information on formulas, refer to the Formula Reference.

For more details on the individual event arguments, refer to UserFormulaEnteredEventArgs members.

Example
This example raises the UserFormula event.
private void fpSpread1_UserFormulaEntered(object sender, FarPoint.Win.Spread.UserFormulaEnteredEventArgs e)
{
      MessageBox.Show("The formulas is entered in cell " + e.Row + " ," + e.Column, "UserFormulaEntered", MessageBoxButtons.OK);
}
Private Sub FpSpread1_UserFormulaEntered(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.UserFormulaEnteredEventArgs)
Handles FpSpread1.UserFormulaEntered
     MessageBox.Show("The formulas is entered in cell " & e.Row & " ," & e.Column, "UserFormulaEntered", MessageBoxButtons.OK)
End Sub
See Also