ITabCellContentChangeEventArgs.Type

Fore Syntax

Type: TabCellContentChange;

Fore.NET Syntax

Type: Prognoz.Platform.Interop.Tab.TabCellContentChange;

Description

The Type property returns the change type.

Fore Example

To execute the example a form, the TabSheetBox component named TabSheetBox1 placed on this form, and a data source for TabSheetBox1 are required. 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.

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 Fore components.

Imports Prognoz.Platform.Interop.Tab;

Private Sub tabSheetBoxNet1_OnChangeCellContent(Sender: System.Object; Args: Prognoz.Platform.Interop.Tab.TabCellContentChangeEventArgs);
Begin
    
Select Case Args.Type
        
//Actions on changing value
        Case TabCellContentChange.tcccValue: System.Diagnostics.Debug.WriteLine("Value changed");
        
//Actions on changing formula
        Case TabCellContentChange.tcccFormula: System.Diagnostics.Debug.WriteLine("Formula changed");
        
//Actions on changing the text
        Case TabCellContentChange.tcccText: System.Diagnostics.Debug.WriteLine("Text changed");
        
//Actions on changing text formatting
        Case TabCellContentChange.tcccFormattedText: System.Diagnostics.Debug.WriteLine("Text formatting changed");
        
//Actions on changing the style
        Case TabCellContentChange.tcccStyle: System.Diagnostics.Debug.WriteLine("Style changed");
    
End Select;
End Sub;

See also:

ITabCellContentChangeEventArgs