menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GridBorderPaint - API Reference

    Show / Hide Table of Contents

    Class GridBorderPaint

    Implements the method that provides the rectangle routine for drawing a GridBorder.

    Inheritance
    System.Object
    GridBorderPaint
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.Windows.Forms.Grid
    Assembly: Syncfusion.Grid.Windows.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.

    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved