←Select platform

FontSize Property

Summary

Gets or sets the point size of the new font for this AnnFont object.

Syntax
C#
VB
Objective-C
C++
Java
public double FontSize { get; set; } 
Public Property FontSize As Double 
@property (nonatomic) double fontSize; 
public double getFontSize() 
public void setFontSize(double fontSize) 
public:  
   property double FontSize 
   { 
      double get() 
      void set(double value) 
   } 

Property Value

The point size of the new font for this AnnFont object.

Remarks

The point size is standard, which is defined as 1/72 of an inch. When something is drawn, it depends on the value of AnnFixedStateOperations. For example, when labels are drawing with setting a font size to 14pt, the value of AnnFixedStateOperations.FontSize needs to be set. So the user don't care what the zoom is, always draw this label text with setting a font size to 14pt.

For other objects, the default state is not AnnFixedStateOperations.FontSize, so when an annotation text object is drawn and the font size is set to 14pt, it will be converted to 140/720 of an inch -- because of annotations coordinates are in 1/720 of an inch.

Requirements

Target Platforms

See Also

Reference

AnnFont Class

AnnFont Members

Help Version 20.0.2020.3.31
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Annotations.Engine Assembly