[]
Gets the bounds for displaying the part of this text.
public static Rectangle[] MeasureSubstring(Graphics graphics, Font font, TextFormatFlags textFormatFlags, Rectangle bounds, string text, string substring, int substringStartIndex)
Type | Name | Description |
---|---|---|
Graphics | graphics | The device context. |
Font | font | The Font of text. |
TextFormatFlags | textFormatFlags | The text layout information. |
Rectangle | bounds | The Rectangle that represents the bounds of the text. |
string | text | The text to draw. |
string | substring | The substring to highlight. |
int | substringStartIndex | The position at which the substring starts. |
Type | Description |
---|---|
Rectangle[] |
Gets the bounds for displaying the part of this text.
public static Rectangle[] MeasureSubstring(Graphics graphics, Font font, TextFormatFlags textFormatFlags, Rectangle bounds, string text, int substringStartIndex, int substringLength)
Type | Name | Description |
---|---|---|
Graphics | graphics | The device context. |
Font | font | The Font of text. |
TextFormatFlags | textFormatFlags | The text layout information. |
Rectangle | bounds | The Rectangle that represents the bounds of the text. |
string | text | The text to draw. |
int | substringStartIndex | The position at which the substring starts. |
int | substringLength | The length of substring. |
Type | Description |
---|---|
Rectangle[] |
Gets the bounds for displaying the part of this text.
public static Rectangle[] MeasureSubstring(Graphics graphics, Font font, TextFormatFlags textFormatFlags, Rectangle bounds, string text, IList<CharacterRange> substringRanges)
Type | Name | Description |
---|---|---|
Graphics | graphics | The device context. |
Font | font | The Font of text. |
TextFormatFlags | textFormatFlags | The text layout information. |
Rectangle | bounds | The Rectangle that represents the bounds of the text. |
string | text | The text to draw. |
IList<CharacterRange> | substringRanges | Positions and lengths of all occurrences of substrings to highlight. |
Type | Description |
---|---|
Rectangle[] |