CogExpressionChangedEventArgs ClassCognex VisionPro 9.5
The derived CogChangedEventArgs fired by CogResultsAnalysisExpressions. These event args contain additional information indicating whether the change was directly to the firing expression object (sender) or to a dependency. In the root dependency event args (the one that has DependencyEvent == false), it contains the OldValue of the changed state (indicated in the root event args StateFlags).
Inheritance Hierarchy

System Object
  System EventArgs
    Cognex.VisionPro CogChangedEventArgs
      Cognex.VisionPro.ResultsAnalysis CogExpressionChangedEventArgs

Namespace: Cognex.VisionPro.ResultsAnalysis
Assembly: Cognex.VisionPro.ResultsAnalysis (in Cognex.VisionPro.ResultsAnalysis.dll) Version: 69.0.0.0 (69.0.0.0)
Syntax

public class CogExpressionChangedEventArgs : CogChangedEventArgs

The CogExpressionChangedEventArgs type exposes the following members.

Constructors

  NameDescription
Public methodCogExpressionChangedEventArgs(CogResultsAnalysisExpression, Int64, Object, CogChangedEventArgs)
Public methodCogExpressionChangedEventArgs(CogResultsAnalysisExpression, Int64, Object, Object)
Top
Methods

  NameDescription
Public methodContainsSender
Returns true if the given object is one of the expression objects that changed in this chain of change events, otherwise false.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetStateFlagNames(Object)
Creates a string containing the state flags that correspond to the members that may have changed.
(Inherited from CogChangedEventArgs.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
Fields

  NameDescription
Public fieldStateFlags
Gets the state flags associated with the Changed event.
(Inherited from CogChangedEventArgs.)
Top
Properties

  NameDescription
Public propertyDependencyEvent
Flag indicating whether the sending expression was changed directly, or a dependent expression of the sender was changed. If the sender was changed directly (DependencyEvent == false), the StateFlags indicate what piece of state was changed, and Value and OldValue contain the new and previous values of that piece of state, respectively. Otherwise, Value and OldValue are null (Nothing).
Public propertyDependencyEventArgs
The event args originally fired by DependencyEventSender, if DependencyEvent is true, otherwise null (Nothing).
Public propertyDependencyEventSender
The expression object that originally fired DependencyEventArgs, if DependencyEvent is true, otherwise null (Nothing).
Public propertyOldValue
The previous value of the property indicated in StateFlags. If DepedencyEvent is true, Value and OldValue will be null and the values must be obtained from DepedencyEventArgs.
Public propertyValue
The new value of the property indicated in StateFlags. If DepedencyEvent is true, Value and OldValue will be null and the values must be obtained from DepedencyEventArgs.
Top
See Also