CogOCFontModels GetFontModelByNameInstance Method Cognex VisionPro 9.7
Get the font model identified by the Name and Instance input arguments.

Namespace: Cognex.VisionPro.OC
Assembly: Cognex.VisionPro.OC (in Cognex.VisionPro.OC.dll) Version: 73.0.0.0
Syntax

public CogOCFontModel GetFontModelByNameInstance(
	string name,
	int instance
)

Return Value

Type: CogOCFontModel

The returned CogOCFontModel.

Exceptions

ExceptionCondition
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