ITabCellContentChangeEventArgs.Type

Syntax

Type: TabCellContentChange;

Description

The Type property returns the change type.

Example

Executing the example requires a form, the TabSheetBox component named TabSheetBox1 and located on this form, and a data source for TabSheetBox1. The procedure specified below is used as the OnChangeCellContent event handler. Add link to the Tabsheet system assembly.

Sub TabSheetBox1OnChangeCellContent(Sender: Object; Args: ITabCellContentChangeEventArgs);
Begin
    
Select Case Args.Type
        
//Actions on changing value
        Case TabCellContentChange.Value: Debug.WriteLine("Value changed");
        
//Actions on changing formula
        Case TabCellContentChange.Formula: Debug.WriteLine("Formula changed");
        
//Actions on changing the text
        Case TabCellContentChange.Text: Debug.WriteLine("Text changed");
        
//Actions on changing text formatting
        Case TabCellContentChange.FormattedText: Debug.WriteLine("Formatting text changed");
        
//Actions on changing the style
        Case TabCellContentChange.Style: Debug.WriteLine("Style changed");
    
End Select;
End Sub TabSheetBox1OnChangeCellContent;

The specified procedure shows how various types of changes can be processed on occurring the OnChangeCellContent event.

See also:

ITabCellContentChangeEventArgs