←Select platform

MeasureString Method

Summary
Measures the specified string when drawn with the specified font.
Syntax
C#
VB
C++
public override LeadSizeD MeasureString( 
   string text, 
   AnnFont font 
) 
Public Overrides Function MeasureString( _ 
   ByVal text As String, _ 
   ByVal font As AnnFont _ 
) As LeadSizeD 
public:  
   virtual LeadSizeD^ MeasureString( 
      String^ text, 
      AnnFont^ font 
   ) override 

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

Help Version 21.0.2021.6.30
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.