InputPanel for WinForms | ComponentOne
C1.Win.8 Assembly / C1.Win.Drawing Namespace / StringRendererGDIPlus Class / MeasureSubstring Method / MeasureSubstring(Graphics,Font,StringFormat,Rectangle,String,Int32,Int32) Method
The device context.
The Font of text.
The text layout information.
The System.Drawing.Rectangle that represents the bounds of the text.
The text to draw.
The position at which the substring starts.
The length of substring.

In This Topic
    MeasureSubstring(Graphics,Font,StringFormat,Rectangle,String,Int32,Int32) Method
    In This Topic
    Gets the bounds for displaying the part of this text.
    Syntax
    'Declaration
     
    Public Overloads Shared Function MeasureSubstring( _
       ByVal graphics As Graphics, _
       ByVal font As Font, _
       ByVal stringFormat As StringFormat, _
       ByVal bounds As Rectangle, _
       ByVal text As String, _
       ByVal substringStartIndex As Integer, _
       ByVal substringLength As Integer _
    ) As Rectangle()
    public static Rectangle[] MeasureSubstring( 
       Graphics graphics,
       Font font,
       StringFormat stringFormat,
       Rectangle bounds,
       string text,
       int substringStartIndex,
       int substringLength
    )

    Parameters

    graphics
    The device context.
    font
    The Font of text.
    stringFormat
    The text layout information.
    bounds
    The System.Drawing.Rectangle that represents the bounds of the text.
    text
    The text to draw.
    substringStartIndex
    The position at which the substring starts.
    substringLength
    The length of substring.
    See Also