TOC : Script API > JavaScript > JavaScript API > Component > Note > Method >

 

GetPreferedFontSize

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

TOC : Script API > JavaScript > JavaScript API > Component > Note > Method >

 

GetPreferedFontSize

 

 

Gets the base font size in which a text in a component can be displayed without exceeding the size of the component.

 

 

 

Prototype :

 

integer GetPreferedFontSize

(

        integer BaseFontSize,

        [ string AutoFontSize ]

)

 

 

 

Arguments :

 

BaseFontSize

base font size

AutoFontSize

refer to AutoFontSizeConst

If not set, applies as "True"

 

 

 

Example :

 

//string

  _TraceLn(This.GetPreferedFontSize(This.GetFontSize(), "SmallerOnly"));

 

//constant

  _TraceLn(This.GetPreferedFontSize(This.GetFontSize(), AutoFontSizeConst.SmallerOnly));

 

 

 

Available Events :

 

All Events

 

 

 

See also :

 

AutoFontSizeConst