TabSheetBox.OnBeforeInsertRange

Fore Syntax

Sub OnBeforeInsertRange(Sender: Object; Args: ITabRangeInsertEventArgs);

Begin

//set of operators;

End Sub OnBeforeInsertRange;

Fore.NET Syntax

Sub OnBeforeInsertRange(sender: System.Object; Args: Prognoz.Platform.Interop.Tab.TabRangeInsertEventArgs);

Begin

//set of operators;

End Sub;

Parameters

Sender. Parameter returning the component that has generated the event

Args. Parameter allowing to determine event parameters.

Description

The OnBeforeInsertRange event occurs before cell range adding.

Comments

After cell range adding the TabSheetBox.OnAfterInsertRange event occurs.

Fore Example

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 TabSheetBox1OnBeforeInsertRange(Sender: Object; Args: ITabRangeInsertEventArgs);
Begin
    Debug.WriteLine("The range will be added: " + Args.Range.Address +
    " using the method: " + Args.ShiftDirection.ToString + " in the table: " + Args.TabSheet.Name);
End Sub TabSheetBox1OnBeforeInsertRange;

After executing the example, before each cell range adding the console displays the message containing information about the range being added.

Fore.NET Example

The requirements and result of the Fore.NET Example execution match with those in the Fore Example. Use Fore.NET analogs instead of the Fore components.

Private Sub tabSheetBoxNet1_OnBeforeInsertRange(Sender: System.Object; Args: Prognoz.Platform.Interop.Tab.TabRangeInsertEventArgs);
Begin
    System.Diagnostics.Debug.WriteLine("The range will be added: " + Args.Range.Address +
    " using the method: " + Args.ShiftDirection.ToString() + " in the table: " + Args.TabSheet.Name);
End Sub;

See also:

TabSheetBox