Class GridBorderPaint
Represents the method that provides the rectangle routine for drawing a GridBorder.
Inheritance
System.Object
GridBorderPaint
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.WinForms.DataGrid.Styles
Assembly: Syncfusion.SfDataGrid.WinForms.dll
Syntax
public sealed class GridBorderPaint
Methods
DrawRectangle(Graphics, GridBorder, Rectangle, Color, GridBorderSide)
Draws a rectangle with a GridBorder.
Declaration
public static void DrawRectangle(Graphics g, GridBorder border, Rectangle r, Color backColor, GridBorderSide borderSide)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | A System.Drawing.Graphics context |
GridBorder | border | A GridBorder. |
System.Drawing.Rectangle | r | System.Drawing.Rectangle structure that represents the rectangle to fill. |
System.Drawing.Color | backColor | The back color. |
GridBorderSide | borderSide | Specifies which border sides to draw. |
DrawRectangle(Graphics, GridBorder, Rectangle, Color, GridBorderSide, Boolean)
Draws a rectangle with a GridBorder.
Declaration
public static void DrawRectangle(Graphics g, GridBorder border, Rectangle r, Color backColor, GridBorderSide borderSide, bool usePenForThinLines)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | A System.Drawing.Graphics context. |
GridBorder | border | A GridBorder. |
System.Drawing.Rectangle | r | System.Drawing.Rectangle structure that represents the rectangle to fill. |
System.Drawing.Color | backColor | The back color. |
GridBorderSide | borderSide | Specifies which border sides to draw. |
System.Boolean | usePenForThinLines | True if a System.Drawing.Pen should be used for thin lines instead of an optimized method that uses brushes. |