←Select platform

GetTextSize Method

Summary

Measure the text size and return the result.

Syntax

C#
VB
Java
Objective-C
WinRT C#
C++
public virtual LeadSizeD GetTextSize( 
   string text, 
   AnnFont annFont, 
   LeadSizeD layoutArea 
) 
Public Overridable Function GetTextSize( _ 
   ByVal text As String, _ 
   ByVal annFont As Leadtools.Annotations.Core.AnnFont, _ 
   ByVal layoutArea As Leadtools.LeadSizeD _ 
) As Leadtools.LeadSizeD 
- (CGSize)getTextSize:(NSString *)text font:(LTAnnFont *)annFont rect:(LeadRectD)rect 
public LeadSizeD getTextSize(String text, AnnFont annFont, LeadSizeD layoutArea) 
             
 function Leadtools.Annotations.Rendering.AnnTextObjectRenderer.GetTextSize(  
   text , 
   annFont , 
   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 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Annotations.Rendering.WinForms Assembly