ImageGear .NET v25.2 - Updated
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.




In This Topic
    GetTextWidth Method
    In This Topic
    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