This class provides arguments for a cancellable change to a string. These arguments include a copy of the old string value as well as a copy of the new string value. In addition, these arguments include a reference to an optional exception to be thrown should cancellation be activated. Cancellation is activated when the base class Cancel property is set to true.
System EventArgs
Cognex.Vision EventArgs
Cognex.Vision CancelEventArgs
Cognex.Vision CancelChangingStringEventArgs
Namespace: Cognex.Vision
Assembly: Cognex.Vision.Core.Net (in Cognex.Vision.Core.Net.dll) Version: 9.10.0.0
The CancelChangingStringEventArgs type exposes the following members.
| Name | Description | |
|---|---|---|
| CancelChangingStringEventArgs | Construct an instance of this class with the specified values for the old and new strings. |
| Name | Description | |
|---|---|---|
| Equals | Compares the equality of this object with another. (Overrides CancelEventArgs Equals(Object).) | |
| GetHashCode | Returns the hash code of this object. (Overrides CancelEventArgs GetHashCode .) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| ToString | Returns a human readable string that represents the object. |
| Name | Description | |
|---|---|---|
| Equality | Compares the equality of two CancelChangingStringEventArgs objects. | |
| Inequality | Compares the inequality of two CancelChangingStringEventArgs objects. |
| Name | Description | |
|---|---|---|
| Cancel | Get (Inherited from CancelEventArgs.)Get the value of the Cancel property. | |
| ExceptionToThrow | Get Get the exception that is to be thrown should the action be cancelled. This may be null. | |
| Handle | (Inherited from CancelEventArgs.) | |
| NewValue | Get the new string value that will be assigned unless the action is cancelled. | |
| OldValue | Get the old string value that was in effect when the event was raised. |