ImageGear .NET v25.2 - Updated
GetTextWidth Method




ImageGear.Formats.Vector Assembly > ImageGear.Vector Namespace > ImGearVectorTextObject Class : GetTextWidth Method
Text string whose actual width is to be calculated. If this parameter is null, the width is calculated for the text assigned to the text object.
Calculates the actual width of a text string, taking into account the current Text Object settings.
Syntax
'Declaration
 
Public Function GetTextWidth( _
   ByVal text As String _
) As Single
'Usage
 
Dim instance As ImGearVectorTextObject
Dim text As String
Dim value As Single
 
value = instance.GetTextWidth(text)
public float GetTextWidth( 
   string text
)
public: float GetTextWidth( 
   string* text
) 
public:
float GetTextWidth( 
   String^ text
) 

Parameters

text
Text string whose actual width is to be calculated. If this parameter is null, the width is calculated for the text assigned to the text object.

Return Value

Any positive value.
See Also

Reference

ImGearVectorTextObject Class
ImGearVectorTextObject Members

Is this page helpful?
Yes No
Thanks for your feedback.