CogOCFontModels GetFontModelByNameInstance Method Cognex VisionPro 9.22 SR1
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: 87.1.0.0
Syntax

public CogOCFontModel GetFontModelByNameInstance(
	string name,
	int instance
)

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: 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