TabSheetBox.OnBeforeInsertRange

Syntax

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

Begin

//set of operators;

End Sub OnBeforeInsertRange;

Parameters

Sender. The parameter that returns the component that generated the event.

Args. The parameter that enables the user to determine event parameters.

Description

The OnBeforeInsertRange event occurs before cell range adding.

Comments

After cell range adding the TabSheetBox.OnAfterInsertRange event occurs.

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.

See also:

TabSheetBox