←Select platform

GetTextSize Method (AnnD2DTextObjectRenderer)

Summary
Measure the text size and return the result.
Syntax
C#
VB
public LeadSizeD GetTextSize(  
   string text, 
   AnnFont annFont, 
   LeadSizeD layoutArea, 
   bool wordWrap 
) 
Public Function GetTextSize( _ 
   ByVal text As String, _ 
   ByVal annFont As AnnFont, _ 
   ByVal layoutArea As LeadSizeD, _ 
   ByVal wordWrap As Boolean _ 
) As LeadSizeD 

Parameters

text
Text to measure.

annFont
Font to use in measurement.

layoutArea
Clipping layout area.

wordWrap
A value that indicates whether the text we want to get its size is wrapped or no.

Return Value

The size of the text in container units.

Requirements

Target Platforms

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

Leadtools.Annotations.Rendering.WinForms Assembly