CogOCVMaxFont GetAvailableFontNames Method Cognex VisionPro 9.5
List the names of every font available within the specified font file.

Namespace: Cognex.VisionPro.OCVMax
Assembly: Cognex.VisionPro.OCVMax (in Cognex.VisionPro.OCVMax.dll) Version: 69.0.0.0
Syntax

public static string[] GetAvailableFontNames(
	string fileName
)

Parameters

fileName
Type: System String
The name of the file to be examined.

Return Value

Type:  String 
A System::Array of System::String in which each string is the name of a font that is defined within the specified file.
Exceptions

ExceptionCondition
InvalidOperationExceptionIf an error occurs, including not finding or being able to open the specified file.
ArgumentNullExceptionIf the fileName argument is NULL.
See Also