menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class BrushPaint - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class BrushPaint

    Paints window background using BrushInfo information.

    Inheritance
    System.Object
    BrushPaint
    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.Drawing
    Assembly: Syncfusion.Shared.Base.dll
    Syntax
    public sealed class BrushPaint

    Constructors

    BrushPaint()

    Declaration
    public BrushPaint()

    Methods

    FillPath(Graphics, GraphicsPath, BrushInfo)

    Declaration
    public static void FillPath(Graphics g, GraphicsPath p, BrushInfo brush)
    Parameters
    Type Name Description
    System.Drawing.Graphics g
    System.Drawing.Drawing2D.GraphicsPath p
    BrushInfo brush

    FillPath(Graphics, GraphicsPath, GradientStyle, Color[])

    Declaration
    public static void FillPath(Graphics g, GraphicsPath p, GradientStyle gradientStyle, Color[] colors)
    Parameters
    Type Name Description
    System.Drawing.Graphics g
    System.Drawing.Drawing2D.GraphicsPath p
    GradientStyle gradientStyle
    System.Drawing.Color[] colors

    FillPath(Graphics, GraphicsPath, Color)

    Declaration
    public static void FillPath(Graphics g, GraphicsPath p, Color color)
    Parameters
    Type Name Description
    System.Drawing.Graphics g
    System.Drawing.Drawing2D.GraphicsPath p
    System.Drawing.Color color

    FillRectangle(Graphics, Rectangle, BrushInfo)

    Overloaded. Fills the interior of a rectangle using BrushInfo information.

    Declaration
    public static void FillRectangle(Graphics g, Rectangle r, BrushInfo brush)
    Parameters
    Type Name Description
    System.Drawing.Graphics g

    A System.Drawing.Graphics context.

    System.Drawing.Rectangle r

    System.Drawing.Rectangle structure that represents the rectangle to fill.

    BrushInfo brush

    BrushInfo object that determines the characteristics of the fill.

    FillRectangle(Graphics, Rectangle, GradientStyle, Color, Color)

    Fills the interior of a rectangle with a gradient.

    Declaration
    public static void FillRectangle(Graphics g, Rectangle r, GradientStyle gradientStyle, Color foreColor, Color backColor)
    Parameters
    Type Name Description
    System.Drawing.Graphics g

    A System.Drawing.Graphics context.

    System.Drawing.Rectangle r

    System.Drawing.Rectangle Structure that represents the rectangle to fill.

    GradientStyle gradientStyle

    GradientStyle.

    System.Drawing.Color foreColor

    A System.Drawing.Color used for the gradient fill.

    System.Drawing.Color backColor

    A System.Drawing.Color used for the gradient fill.

    FillRectangle(Graphics, Rectangle, GradientStyle, Color[])

    Fills the interior of a rectangle with a gradient.

    Declaration
    public static void FillRectangle(Graphics g, Rectangle r, GradientStyle gradientStyle, Color[] colors)
    Parameters
    Type Name Description
    System.Drawing.Graphics g

    A System.Drawing.Graphics context

    System.Drawing.Rectangle r

    System.Drawing.RectangleF Structure that represents the rectangle to fill.

    GradientStyle gradientStyle

    GradientStyle.

    System.Drawing.Color[] colors

    An array of System.Drawing.Color used for the gradient fill.

    FillRectangle(Graphics, Rectangle, PatternStyle, Color, Color)

    Fills the interior of a rectangle with a pattern.

    Declaration
    public static void FillRectangle(Graphics g, Rectangle r, PatternStyle hatchStyle, Color foreColor, Color backColor)
    Parameters
    Type Name Description
    System.Drawing.Graphics g

    A System.Drawing.Graphics context

    System.Drawing.Rectangle r

    System.Drawing.Rectangle Structure that represents the rectangle to fill.

    PatternStyle hatchStyle

    PatternStyle.

    System.Drawing.Color foreColor

    A System.Drawing.Color used for the pattern fill.

    System.Drawing.Color backColor

    A System.Drawing.Color used for the pattern fill.

    FillRectangle(Graphics, Rectangle, Color)

    Fills the interior of a rectangle with a solid color.

    Declaration
    public static void FillRectangle(Graphics g, Rectangle r, Color color)
    Parameters
    Type Name Description
    System.Drawing.Graphics g

    A System.Drawing.Graphics context.

    System.Drawing.Rectangle r

    System.Drawing.Rectangle Structure that represents the rectangle to fill.

    System.Drawing.Color color

    A System.Drawing.Color.

    FillRectangle(Graphics, RectangleF, BrushInfo)

    Fills the interior of a rectangle using BrushInfo information.

    Declaration
    public static void FillRectangle(Graphics g, RectangleF r, BrushInfo brush)
    Parameters
    Type Name Description
    System.Drawing.Graphics g

    A System.Drawing.Graphics context.

    System.Drawing.RectangleF r

    System.Drawing.RectangleF Structure that represents the rectangle to fill.

    BrushInfo brush

    BrushInfo Object that determines the characteristics of the fill.

    FillRectangle(Graphics, RectangleF, GradientStyle, Color, Color)

    Fills the interior of a rectangle with a gradient.

    Declaration
    public static void FillRectangle(Graphics g, RectangleF r, GradientStyle gradientStyle, Color foreColor, Color backColor)
    Parameters
    Type Name Description
    System.Drawing.Graphics g

    A System.Drawing.Graphics context

    System.Drawing.RectangleF r

    System.Drawing.RectangleF Structure that represents the rectangle to fill.

    GradientStyle gradientStyle

    GradientStyle.

    System.Drawing.Color foreColor

    A System.Drawing.Color used for the gradient fill.

    System.Drawing.Color backColor

    A System.Drawing.Color used for the gradient fill.

    FillRectangle(Graphics, RectangleF, GradientStyle, Color[])

    Fills the interior of a rectangle with a gradient.

    Declaration
    public static void FillRectangle(Graphics g, RectangleF r, GradientStyle gradientStyle, Color[] colors)
    Parameters
    Type Name Description
    System.Drawing.Graphics g

    A System.Drawing.Graphics context

    System.Drawing.RectangleF r

    System.Drawing.RectangleF Structure that represents the rectangle to fill.

    GradientStyle gradientStyle

    GradientStyle.

    System.Drawing.Color[] colors

    An array of System.Drawing.Color used for the gradient fill.

    FillRectangle(Graphics, RectangleF, PatternStyle, Color, Color)

    Fills the interior of a rectangle with a pattern.

    Declaration
    public static void FillRectangle(Graphics g, RectangleF r, PatternStyle hatchStyle, Color foreColor, Color backColor)
    Parameters
    Type Name Description
    System.Drawing.Graphics g

    A System.Drawing.Graphics context

    System.Drawing.RectangleF r

    System.Drawing.RectangleF Structure that represents the rectangle to fill.

    PatternStyle hatchStyle

    PatternStyle.

    System.Drawing.Color foreColor

    A System.Drawing.Color used for the pattern fill.

    System.Drawing.Color backColor

    A System.Drawing.Color used for the pattern fill.

    FillRectangle(Graphics, RectangleF, Color)

    Fills the interior of a rectangle with a solid color.

    Declaration
    public static void FillRectangle(Graphics g, RectangleF r, Color color)
    Parameters
    Type Name Description
    System.Drawing.Graphics g

    A System.Drawing.Graphics context.

    System.Drawing.RectangleF r

    System.Drawing.RectangleF Structure that represents the rectangle to fill.

    System.Drawing.Color color

    A System.Drawing.Color.

    FillRegion(Graphics, Region, BrushInfo)

    Overloaded. Fills the interior of a region using BrushInfo information.

    Declaration
    public static void FillRegion(Graphics g, Region r, BrushInfo brush)
    Parameters
    Type Name Description
    System.Drawing.Graphics g

    A System.Drawing.Graphics context.

    System.Drawing.Region r

    System.Drawing.Region Structure that represents the region to fill.

    BrushInfo brush

    BrushInfo object that determines the characteristics of the fill.

    FillRegion(Graphics, Region, GradientStyle, Color, Color)

    Fills the interior of a region with a gradient.

    Declaration
    public static void FillRegion(Graphics g, Region r, GradientStyle gradientStyle, Color foreColor, Color backColor)
    Parameters
    Type Name Description
    System.Drawing.Graphics g

    A System.Drawing.Graphics context.

    System.Drawing.Region r

    System.Drawing.Region Structure that represents the region to fill.

    GradientStyle gradientStyle

    GradientStyle.

    System.Drawing.Color foreColor

    A System.Drawing.Color used for the gradient fill.

    System.Drawing.Color backColor

    A System.Drawing.Color used for the gradient fill.

    FillRegion(Graphics, Region, GradientStyle, Color[])

    Fills the interior of a region with a gradient.

    Declaration
    public static void FillRegion(Graphics g, Region r, GradientStyle gradientStyle, Color[] colors)
    Parameters
    Type Name Description
    System.Drawing.Graphics g

    A System.Drawing.Graphics context.

    System.Drawing.Region r

    System.Drawing.Region structure that represents the region to fill.

    GradientStyle gradientStyle

    GradientStyle.

    System.Drawing.Color[] colors

    An array of System.Drawing.Color used for the gradient fill.

    FillRegion(Graphics, Region, PatternStyle, Color, Color)

    Fills the interior of a region with a pattern.

    Declaration
    public static void FillRegion(Graphics g, Region r, PatternStyle hatchStyle, Color foreColor, Color backColor)
    Parameters
    Type Name Description
    System.Drawing.Graphics g

    A System.Drawing.Graphics context.

    System.Drawing.Region r

    System.Drawing.Region Structure that represents the region to fill.

    PatternStyle hatchStyle

    PatternStyle.

    System.Drawing.Color foreColor

    A System.Drawing.Color used for the pattern fill.

    System.Drawing.Color backColor

    A System.Drawing.Color used for the pattern fill.

    FillRegion(Graphics, Region, Color)

    Fills the interior of a region with a solid color.

    Declaration
    public static void FillRegion(Graphics g, Region r, Color color)
    Parameters
    Type Name Description
    System.Drawing.Graphics g

    A System.Drawing.Graphics context.

    System.Drawing.Region r

    System.Drawing.Region Structure that represents the region to fill.

    System.Drawing.Color color

    A System.Drawing.Color.

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