Click or drag to resize

AnnotationFont Constructor (String, Single, Boolean, Boolean, Boolean, Boolean)

Creates a new instance of AnnotationFont specifying the font parameters.

Namespace:  Atalasoft.Annotate
Assembly:  Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
public AnnotationFont(
	string fontName,
	float size,
	bool bold,
	bool italic,
	bool underline,
	bool strikeout
)

Parameters

fontName
Type: SystemString
The name of the font.
size
Type: SystemSingle
The size of the font.
bold
Type: SystemBoolean
Indicates if this font is bold.
italic
Type: SystemBoolean
Indicates if this font is italic.
underline
Type: SystemBoolean
Indicates if this font is underlined.
strikeout
Type: SystemBoolean
Indicates if this font has a strikeout.
Exceptions
ExceptionCondition
ArgumentNullException Thrown if the 'fontName' argument is null (Nothing in VB) or an empty string.
ArgumentOutOfRangeException Thrown if the 'size' argument is less than or equal to 0.
See Also