Initializes a new Font that uses the specified existing font family, size and font style.
Assembly: Cognex.Vision.Core.Net (in Cognex.Vision.Core.Net.dll) Version: 9.24.0.0
Syntax
Parameters
- fontFamilyName
- Type: System String
The font family of the new Font.
- sizeInPoints
- Type: System Int32
The size, in points, of the new Font.
- fontStyle
- Type: Cognex.Vision FontStyleConstants
The font style of the new Font.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | fontFamilyName is empty or whitespace only. |
See Also