←Select platform

FontSize Property

Summary

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

Syntax

C#
VB
Java
Objective-C
WinRT C#
C++
public double FontSize { get; set; } 
Public Property FontSize As Double 
public double FontSize {get; set;} 
@property (nonatomic) double fontSize; 
public double getFontSize() 
public void setFontSize(double fontSize) 
             
  
get_FontSize(); 
set_FontSize(value); 
Object.defineProperty('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 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Annotations.Core Assembly