←Select platform

GetTextSize Method

Summary
Measure the text size and return the result.
Syntax
C#
Objective-C
C++
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 
); 
vb[VB Syntax] 
Public Overridable Function GetTextSize( 
   ByVal _text_ As String, 
   ByVal _annFont_ As AnnFont, 
   ByVal _layoutArea_ As LeadSizeD, 
   ByVal _useDefaultStringFormat_ As Boolean 
) As 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 22.0.2022.4.4
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2022 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Annotations.Rendering.WinForms Assembly

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