ComponentOne SuperTooltip for WinForms
C1.Win.8 Assembly / C1.Win.Drawing Namespace / StringRendererGDIPlus Class / MeasureSubstring Method / MeasureSubstring(Graphics,Font,StringFormat,Rectangle,String,String,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 substring to highlight.
The position at which the substring starts.

In This Topic
    MeasureSubstring(Graphics,Font,StringFormat,Rectangle,String,String,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 System.Drawing.Graphics, _
       ByVal font As System.Drawing.Font, _
       ByVal stringFormat As System.Drawing.StringFormat, _
       ByVal bounds As System.Drawing.Rectangle, _
       ByVal text As System.String, _
       ByVal substring As System.String, _
       ByVal substringStartIndex As System.Integer _
    ) As System.Drawing.Rectangle()
    public static System.Drawing.Rectangle[] MeasureSubstring( 
       System.Drawing.Graphics graphics,
       System.Drawing.Font font,
       System.Drawing.StringFormat stringFormat,
       System.Drawing.Rectangle bounds,
       System.string text,
       System.string substring,
       System.int substringStartIndex
    )

    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.
    substring
    The substring to highlight.
    substringStartIndex
    The position at which the substring starts.
    See Also