←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 
   ) 

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 20.0.2020.3.31
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Annotations.Rendering.WinForms Assembly