LEADTOOLS JavaScript (Leadtools.Annotations.Rendering)

GetTextSize Method (AnnTextObjectRenderer)

Show in webframe
The text string to measure.
The font to use.
The maximum layout area for the text.
Gets the size of a string of text.
Syntax
 function Leadtools.Annotations.Rendering.AnnTextObjectRenderer.getTextSize( 
   text ,
   annFont ,
   layoutArea 
)

Parameters

ParameterTypeDescription
textstringThe text string to measure.
annFontAnnFontThe font to use.
layoutAreaLeadSizeDThe maximum layout area for the text.
Remarks

This method is called by the renderer to measure the size of a text string using a specific font and clipping rectangle. Derived classes can override this method and provide their own implementation.

See Also

Reference

AnnTextObjectRenderer Object
AnnTextObjectRenderer Members

 

 


Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.