←Select platform

GetTextSize Method (AnnD2DTextObjectRenderer)

Summary

Measure the text size and return the result.

Syntax

C#
VB
WinRT C#
Public Function GetTextSize( _ 
   ByVal text As String, _ 
   ByVal annFont As Leadtools.Annotations.Core.AnnFont, _ 
   ByVal layoutArea As Leadtools.LeadSizeD, _ 
   ByVal wordWrap As Boolean _ 
) As Leadtools.LeadSizeD 
 function Leadtools.Annotations.Rendering.AnnD2DTextObjectRenderer.GetTextSize(  
   text , 
   annFont , 
   layoutArea , 
   wordWrap  
) 

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 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Annotations.Rendering.WinForms Assembly