CogOCVCharacterPosition SetFontModel Method Cognex VisionPro 9.22 SR1
Set font model specified by the index to the new values.

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

public void SetFontModel(
	int index,
	string name,
	int instance
)

Parameters

index
Type: System Int32

The zero-based index of the position to set.

name
Type: System String

The name.

instance
Type: System Int32

The instance number.

Events

Exceptions

ExceptionCondition
ArgumentException

instance is < 0 or > 255.

ArgumentException

index is < 0 or >= FontModelCount.

Remarks

Sets the specified character position to use the supplied font model name and instance.

See Also