'Declaration
Public Overloads Shared Function MeasureSubstring( _ ByVal graphics As Graphics, _ ByVal font As Font, _ ByVal textFormatFlags As TextFormatFlags, _ ByVal bounds As Rectangle, _ ByVal text As String, _ ByVal substring As String, _ ByVal substringStartIndex As Integer _ ) As Rectangle()
public static Rectangle[] MeasureSubstring( Graphics graphics, Font font, TextFormatFlags textFormatFlags, Rectangle bounds, string text, string substring, int substringStartIndex )
Parameters
- graphics
- The device context.
- font
- The Font of text.
- textFormatFlags
- 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.