measureString Method (AnnRenderingEngine)

Summary

Measures the specified string when drawn with the specified font.

Syntax

JavaScript Syntax
AnnRenderingEngine.prototype.measureString = function(text, font)
TypeScript Syntax
measureString(text: string, font: AnnFont): LeadSizeD;

Parameters

text

String to measure.

font

Font that defines the text format of the string.

Return Value

The size of the string in container coordinates.

Requirements

Target Platforms

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Leadtools.Annotations.Core Assembly
Click or drag to resize