Class TabPaint
This class fully encapsulates the painting logic for a tab in a TabBarSplitterControl.
Inheritance
System.Object
TabPaint
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.Windows.Forms
Assembly: Syncfusion.Shared.Base.dll
Syntax
public sealed class TabPaint
Methods
DrawTab(Graphics, Rectangle, ImageList, Int32, String, Brush, Color, Font, Boolean, Int32, Boolean)
Declaration
public static void DrawTab(Graphics g, Rectangle bounds, ImageList imageList, int imageIndex, string label, Brush fillBrush, Color textColor, Font font, bool enabled, int delta, bool overlapping)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | |
System.Drawing.Rectangle | bounds | |
System.Windows.Forms.ImageList | imageList | |
System.Int32 | imageIndex | |
System.String | label | |
System.Drawing.Brush | fillBrush | |
System.Drawing.Color | textColor | |
System.Drawing.Font | font | |
System.Boolean | enabled | |
System.Int32 | delta | |
System.Boolean | overlapping |
DrawTabButton(Graphics, Rectangle, String, Brush, Int32, Boolean)
Declaration
public static void DrawTabButton(Graphics g, Rectangle bounds, string label, Brush fillBrush, int delta, bool overlapping)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | |
System.Drawing.Rectangle | bounds | |
System.String | label | |
System.Drawing.Brush | fillBrush | |
System.Int32 | delta | |
System.Boolean | overlapping |
DrawTabText(Graphics, Rectangle, ImageList, Int32, String, Color, Font, Boolean)
Declaration
public static void DrawTabText(Graphics g, Rectangle bounds, ImageList imageList, int imageIndex, string label, Color textColor, Font font, bool enabled)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | |
System.Drawing.Rectangle | bounds | |
System.Windows.Forms.ImageList | imageList | |
System.Int32 | imageIndex | |
System.String | label | |
System.Drawing.Color | textColor | |
System.Drawing.Font | font | |
System.Boolean | enabled |