LEADTOOLS Annotations (Leadtools.Annotations assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
AnnFont Constructor(FontFamily,AnnLength,FontStyle)
See Also 
Leadtools.Annotations Namespace > AnnFont Class > AnnFont Constructor : AnnFont Constructor(FontFamily,AnnLength,FontStyle)



family
The System.Drawing.FontFamily object of the new AnnFont object.
size
The em-size of the new font.
style
The System.Drawing.FontStyle of the new font.

The AnnFont Constructor(FontFamily,AnnLength,FontStyle) is available in LEADTOOLS Document and Medical Imaging toolkits.

Initializes a new AnnFont object with the specified family, size and style.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal family As FontFamily, _
   ByVal size As AnnLength, _
   ByVal style As FontStyle _
)
Visual Basic (Usage)Copy Code
Dim family As FontFamily
Dim size As AnnLength
Dim style As FontStyle
 
Dim instance As New AnnFont(family, size, style)
C# 
public AnnFont( 
   FontFamily family,
   AnnLength size,
   FontStyle style
)
C++/CLI 
public:
AnnFont( 
   FontFamily^ family,
   AnnLength size,
   FontStyle style
)

Parameters

family
The System.Drawing.FontFamily object of the new AnnFont object.
size
The em-size of the new font.
style
The System.Drawing.FontStyle of the new font.

Example

For an example, refer to AnnFont.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

Leadtools.Annotations requires a Document or Medical toolkit license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features