Get the font model identified by the Name and Instance input arguments.
Namespace: Cognex.VisionPro.OCAssembly: Cognex.VisionPro.OC (in Cognex.VisionPro.OC.dll) Version: 75.0.0.0
Syntax
Parameters
- name
- Type: System String
The name of the font model to get.
- instance
- Type: System Int32
The instance of the font model to get.
Return Value
Type: CogOCFontModelThe returned CogOCFontModel.
Exceptions
| Exception | Condition |
|---|---|
| CogOCFontDuplicateNameInstanceException | Two or more models have the same name and instance combination. |
| ArgumentException | instance is less than 0 or greater than 255. |
Remarks
Gets the font model with the supplied Name and Instance.
This function returns Nothing if no font is found with the specified name and instance.
See Also