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 EventArgs
Cognex.VisionPro CogChangedEventArgs
Cognex.VisionPro.ResultsAnalysis CogExpressionChangedEventArgs
Namespace: Cognex.VisionPro.ResultsAnalysis
Assembly: Cognex.VisionPro.ResultsAnalysis (in Cognex.VisionPro.ResultsAnalysis.dll) Version: 73.0.0.0 (73.0.0.0)
Syntax
The CogExpressionChangedEventArgs type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| CogExpressionChangedEventArgs(CogResultsAnalysisExpression, Int64, Object, CogChangedEventArgs) | ||
| CogExpressionChangedEventArgs(CogResultsAnalysisExpression, Int64, Object, Object) |
Methods
| Name | Description | |
|---|---|---|
| ContainsSender |
Returns true if the given object is one of the expression objects
that changed in this chain of change events, otherwise false.
| |
| Equals | (Inherited from Object.) | |
| Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
| GetStateFlagNames(Object) |
Creates a string containing the state flags that
correspond to the members that may have changed.
(Inherited from CogChangedEventArgs.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| ToString | (Inherited from Object.) |
Fields
| Name | Description | |
|---|---|---|
| StateFlags |
Gets the state flags associated with the Changed event.
(Inherited from CogChangedEventArgs.) |
Properties
| Name | Description | |
|---|---|---|
| DependencyEvent |
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).
| |
| DependencyEventArgs |
The event args originally fired by DependencyEventSender, if DependencyEvent is true,
otherwise null (Nothing).
| |
| DependencyEventSender |
The expression object that originally fired DependencyEventArgs, if DependencyEvent
is true, otherwise null (Nothing).
| |
| OldValue |
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.
| |
| Value |
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.
|
See Also