←Select platform

MeasureString Method

Summary
Measures the specified string when drawn with the specified font.
Syntax
C#
Objective-C
C++/CLI
Java
Python
public abstract LeadSizeD MeasureString( 
   string text, 
   AnnFont font 
) 
- (LeadSizeD)measureString:(NSString *)text font:(LTAnnFont *)font; 
public abstract LeadSizeD measureString(String text, AnnFont font) 
public:  
   virtual LeadSizeD^ MeasureString( 
      String^ text, 
      AnnFont^ font 
   ) abstract 
def MeasureString(self,text,font): 

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

Help Version 22.0.2023.7.31
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Annotations.Engine Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.