←Select platform

GetTextSize Method

Summary
Measure the text size and return the result.
Syntax
C#
Objective-C
C++/CLI
Java
public virtual LeadSizeD GetTextSize( 
   string text, 
   AnnFont annFont, 
   LeadSizeD layoutArea, 
   bool useDefaultStringFormat 
) 
- (LeadSizeD)textSizeWithString:(NSString *)text font:(LTAnnFont *)annFont layoutArea:(LeadSizeD)layoutArea wordWrap:(BOOL)wordWrap; 
public LeadSizeD getTextSize( 
   java.lang.String string  
   AnnFont annFont  
   LeadSizeD leadSizeD 
); 
public:  
   virtual LeadSizeD^ GetTextSize( 
      String^ text, 
      AnnFont^ annFont, 
      LeadSizeD^ layoutArea, 
      bool useDefaultStringFormat 
   ) 

Parameters

text
Text to measure.

annFont
Font to use in measurement.

layoutArea
Clipping layout area.

useDefaultStringFormat A boolean to indicate whether to use the default string format.

Return Value

The size of the text in container units.

Requirements

Target Platforms

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

Leadtools.Annotations.Rendering.WinForms Assembly

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