Sub OnBeforeDeleteRange(Sender: Object; Args: ITabRangeDeleteEventArgs);
Begin
//set of operators;
End Sub OnBeforeDeleteRange;
Sub OnBeforeDeleteRange(sender: System.Object; Args: Prognoz.Platform.Interop.Tab.TabRangeDeleteEventArgs);
Begin
//set of operators;
End Sub;
Sender. Parameter returning the component that has generated the event
Args. Parameter allowing to determine event parameters.
The OnBeforeDeleteRange event occurs before cell range deletion.
After cell range deletion, the TabSheetBox.OnAfterDeleteRange event occurs.
Executing the example requires a form containing the TabSheetBox component with the TabSheetBox1 identifier and the UiTabSheet component with the UiTabSheet1 identifier. Set the UiTabSheet1 component as a data source for the TabSheetBox1 component.
Sub TabSheetBox1OnBeforeDeleteRange(Sender: Object; Args: ITabRangeDeleteEventArgs);
Begin
Debug.WriteLine("The range will be deleted: " + Args.Range.Address +
" using: " + Args.ShiftDirection.ToString + " from table: " + Args.TabSheet.Name);
End Sub TabSheetBox1OnBeforeDeleteRange;
After executing the example, before each cell range deletion the console displays the message containing information about the range being deleted.
The requirements and result of the Fore.NET Example execution match with those in the Fore Example. Use Fore.NET analogs instead of Fore components.
Private Sub tabSheetBoxNet1_OnBeforeDeleteRange(Sender: System.Object; Args: Prognoz.Platform.Interop.Tab.TabRangeDeleteEventArgs);
Begin
System.Diagnostics.Debug.WriteLine("The range will be deleted: " + Args.Range.Address +
" using: " + Args.ShiftDirection.ToString() + " from the table: " + Args.TabSheet.Name);
End Sub;
See also: