Draws a tab in the specified state and bounds, with the specified text and text formatting, and with an optional focus rectangle.
- g
- The System.Drawing.Graphics used to draw the tab.
- bounds
- The System.Drawing.Rectangle that specifies the bounds of the tab.
- tabItemText
- The string to draw in the tab.
- font
- The System.Drawing.Font to apply to tabItemText.
- flags
- A bitwise combination of the System.Windows.Forms.TextFormatFlags values.
- focused
- true to draw a focus rectangle; otherwise, false.
- state
- One of the System.Windows.Forms.VisualStyles.TabItemState values that specifies the visual state of the tab.
Before calling this method, you should verify that the TabRenderer.IsSupported property returns true.