Documents for Imaging .NET Edition | GCDocuments
GrapeCity.Documents.Imaging Assembly / GrapeCity.Documents.Drawing Namespace / GcGraphics Class / MeasureStringWithTrailingWhitespace Method / MeasureStringWithTrailingWhitespace(String,TextFormat,Nullable<Single>) Method
The string to measure.
The text format to use.
The width allocated to draw the string, or null to indicate unlimited width.

In This Topic
    MeasureStringWithTrailingWhitespace(String,TextFormat,Nullable<Single>) Method
    In This Topic
    Measures a string using a specified GrapeCity.Documents.Text.TextFormat, taking into account the trailing whitespace at the end of each line.
    Syntax
    'Declaration
     
    Public Overloads Function MeasureStringWithTrailingWhitespace( _
       ByVal text As System.String, _
       ByVal textFormat As TextFormat, _
       Optional ByVal width As System.Nullable(Of Single) _
    ) As System.Drawing.SizeF
    public System.Drawing.SizeF MeasureStringWithTrailingWhitespace( 
       System.string text,
       TextFormat textFormat,
       System.Nullable<float> width
    )

    Parameters

    text
    The string to measure.
    textFormat
    The text format to use.
    width
    The width allocated to draw the string, or null to indicate unlimited width.

    Return Value

    The size needed to draw the string with trailing whitespace.
    See Also