←Select platform

GetTextSize Method

Summary
Measure the text size and return the result.
Syntax
C#
VB
Objective-C
C++
Java
public virtual LeadSizeD GetTextSize( 
   string text, 
   AnnFont annFont, 
   LeadSizeD layoutArea 
) 
Public Overridable Function GetTextSize( _ 
   ByVal text As String, _ 
   ByVal annFont As AnnFont, _ 
   ByVal layoutArea As LeadSizeD _ 
) As LeadSizeD 
- (CGSize)getTextSize:(NSString *)text font:(LTAnnFont *)annFont rect:(LeadRectD)rect 
public LeadSizeD getTextSize(String text, AnnFont annFont, LeadSizeD layoutArea) 
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.

Return Value

The size of the text in container units.

Requirements

Target Platforms

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

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