InputPanel for WinForms | ComponentOne
C1.Win.4.5.2 Assembly / C1.Win.Drawing Namespace / StringRendererGDI Class / HighlightSubstring Method / HighlightSubstring(Graphics,Font,TextFormatFlags,Color,Rectangle,String,Color,String,Int32) Method

In This Topic
    HighlightSubstring(Graphics,Font,TextFormatFlags,Color,Rectangle,String,Color,String,Int32) Method
    In This Topic
    Syntax
    'Declaration
     
    Public Overloads Shared Sub HighlightSubstring( _
       ByVal graphics As Graphics, _
       ByVal font As Font, _
       ByVal textFormatFlags As TextFormatFlags, _
       ByVal foreColor As Color, _
       ByVal bounds As Rectangle, _
       ByVal text As String, _
       ByVal highlightColor As Color, _
       ByVal substring As String, _
       ByVal substringStartIndex As Integer _
    ) 
    public static void HighlightSubstring( 
       Graphics graphics,
       Font font,
       TextFormatFlags textFormatFlags,
       Color foreColor,
       Rectangle bounds,
       string text,
       Color highlightColor,
       string substring,
       int substringStartIndex
    )

    Parameters

    graphics
    font
    textFormatFlags
    foreColor
    bounds
    text
    highlightColor
    substring
    substringStartIndex
    See Also