Draws a tab in the specified state and bounds, with the specified image, 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.
- image
- The System.Drawing.Image to draw in the tab.
- imageRectangle
- The System.Drawing.Rectangle that specifies the bounds of image.
- 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.