←Select platform

MeasureString Method

Summary

Measures the specified string when drawn with the specified font.

Syntax

C#
VB
Java
Objective-C
WinRT C#
public abstract Leadtools.LeadSizeD MeasureString(  
   string text, 
   Leadtools.Annotations.Core.AnnFont font 
) 
Public MustOverride Function MeasureString( _ 
   ByVal text As String, _ 
   ByVal font As Leadtools.Annotations.Core.AnnFont _ 
) As Leadtools.LeadSizeD 
public abstract Leadtools.LeadSizeD MeasureString(  
   string text, 
   Leadtools.Annotations.Core.AnnFont font 
) 
-(LeadSizeD) measureString:(NSString*)text font:(LTAnnFont*)font;
public abstract LeadSizeD measureString(String text, AnnFont font)
function Leadtools.Annotations.Core.AnnRenderingEngine.MeasureString(  
   text , 
   font  
) 

Parameters

text
String to measure.

font
Font that defines the text format of the string.

Return Value

The size of the string in container coordinates.

Requirements

Target Platforms

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Leadtools.Annotations.Core Assembly
Click or drag to resize