TabSheetBox.OnAfterInsertRange

Syntax

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

Begin

//set of operators;

End Sub OnAfterInsertRange;

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 OnAfterInsertRange event occurs after adding a cell range.

Comments

Before adding a cell range, the TabSheetBox.OnBeforeInsertRange 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 TabSheetBox1OnAfterInsertRange(Sender: Object; Args: ITabRangeInsertEventArgs);
Begin
    Debug.WriteLine("The range was added: " + Args.Range.Address +
    " using the method: " + Args.ShiftDirection.ToString + " in the table: " + Args.TabSheet.Name);
End Sub TabSheetBox1OnAfterInsertRange;

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

See also:

TabSheetBox