AnnotationFont Constructor (String, Single) |
Creates a new instance of AnnotationFont specifying the font name and size.
Namespace:
Atalasoft.Annotate
Assembly:
Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: 2026.2.0.0.42 (.NET 4.6.2, x86)
Syntaxpublic AnnotationFont(
string fontName,
float size
)
Public Sub New (
fontName As String,
size As Single
)
Parameters
- fontName
- Type: SystemString
The name of the font. - size
- Type: SystemSingle
The size of the font.
Exceptions| Exception | Condition |
|---|
| ArgumentNullException | Thrown if the 'fontName' is null (Nothing in VB) or an empty string. |
| ArgumentOutOfRangeException | Thrown if the 'size' argument is less than or equal to 0. |
See Also