getTextSize Method

Summary

Gets the size of a string of text.

Syntax

JavaScript Syntax
AnnTextObjectRenderer.prototype.getTextSize = function(text, annFont, layoutArea) 
TypeScript Syntax
getTextSize(text: string, annFont: AnnFont, layoutArea: LeadSizeD): LeadSizeD; 

Parameters

text

The text string to measure.

annFont

The font to use.

layoutArea

The 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.

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Annotations.Rendering.JavaScript Assembly