Sets the key set for the specified character position within the specified line within the specified paragraph.
Namespace: Cognex.VisionPro.OCVMaxAssembly: Cognex.VisionPro.OCVMax (in Cognex.VisionPro.OCVMax.dll) Version: 79.0.0.0
Syntax
Parameters
- paragraphPosition
- Type: System Int32
A zero-based index that specifies the position of the paragraph of interest.
- linePosition
- Type: System Int32
A zero-based index that specifies the position of the line of interest within the paragraph of interest.
- characterPosition
- Type: System Int32
A zero-based index that specifies the position of the character of interest within the line of interest within the paragraph of interest.
- NewValue
- Type: System String
A string in which each character corresponds to a member of the key set for this position.
Events
| Event Type | Reason |
|---|---|
| ICogChangedEvent Changed | Fires when this method changes the subject key set. |
Exceptions
| Exception | Condition |
|---|---|
| ObjectDisposedException | If this CogOCVMaxRunParams object has already been disposed. |
| ArgumentOutOfRangeException | If the characterPosition argument is less than zero or greater than or equal to the number of characters in the specified line in the specified paragraph as described in this CogOCVMaxRunParams object. |
Remarks
The key values are passed in the NewValue string. Each character in this string is the key value of a character that may occur at the specified position. Note that this method assumes tht the character keys in this font correspond to Unicode code point values.
See Also