←Select platform

FontSize Property

Summary
Gets or sets the point size of the new font for this AnnFont object.
Syntax
C#
Objective-C
C++/CLI
Java
Python
public double FontSize { get; set; } 
@property (nonatomic, assign) CGFloat fontSize; 
public double getFontSize() 
public void setFontSize(double fontSize) 
public:  
   property double FontSize 
   { 
      double get() 
      void set(double value) 
   } 
FontSize # get and set (AnnFont) 

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 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Annotations.Engine Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.