FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > FpSpread Class : EditModeStarting Event |
'Declaration Public Event EditModeStarting As EditModeStartingEventHandler
'Usage Dim instance As FpSpread Dim handler As EditModeStartingEventHandler AddHandler instance.EditModeStarting, handler
public event EditModeStartingEventHandler EditModeStarting
The event handler receives an argument of type EditModeStartingEventArgs containing data related to this event. The following EditModeStartingEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Cancel | Gets or sets whether to cancel edit mode. |
EditFormula | Gets or sets whether the formula for the cell should be edited. |
This event is raised by the OnEditModeStarting method when edit mode is about to start in the active sheet's active cell.
This event is useful for overriding the default behavior of the cell type to force editing of the formula or value for the cell. By default, cell types that implement IFormulaEditor edit the formula, and cell types that do not implement that interface edit the value.
For more details on the individual event arguments, refer to EditModeStartingEventArgs members.
For a discussion of edit mode and related properties, refer to Understanding Edit Mode.
Label1.Text = "Edit mode starting fires the EditModeStarting event"; private void fpSpread1_EditModeStarting(object sender, System.EventArgs e) { ListBox1.Items.Add("EditModeStarting event fired!"); }
Label1.Text = "Edit mode starting fires the EditModeStarting event" Private Sub FpSpread1_EditModeStarting(ByVal sender As Object, ByVal e As System.EventArgs) Handles FpSpread1.EditModeStarting ListBox1.Items.Add("EditModeStarting event fired!") End Sub
Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10