WinForms

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ProvideBrushEventArgs

    Show / Hide Table of Contents

    Class ProvideBrushEventArgs

    Provides data for the ProvideItemsBackgroundBrush and ProvideHeaderBackgroundBrush event.

    Inheritance
    System.Object
    System.EventArgs
    ProvideBrushEventArgs
    Inherited Members
    System.EventArgs.Empty
    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.Tools
    Assembly: Syncfusion.Tools.Windows.dll
    Syntax
    public class ProvideBrushEventArgs : EventArgs
    Remarks

    If the bounds can be represented by a Rectangle then the Bounds property will have a valid value. If it cannot be represented by a Rectangle then the Path property will have a valid value.

    Constructors

    ProvideBrushEventArgs(Rectangle, GraphicsPath)

    Creates an instance of the ProvideBrushEventArgs class.

    Declaration
    public ProvideBrushEventArgs(Rectangle bounds, GraphicsPath path)
    Parameters
    Type Name Description
    System.Drawing.Rectangle bounds

    The bounds for which a brush is requested.

    System.Drawing.Drawing2D.GraphicsPath path

    The GraphicsPath for which a brush is requested.

    Properties

    Bounds

    Returns the bounds for which a brush is requested.

    Declaration
    public Rectangle Bounds { get; }
    Property Value
    Type Description
    System.Drawing.Rectangle

    The Rectangle specifying the bounds.

    Brush

    Gets / sets the Brush that will be used to draw the specified Bounds or Path.

    Declaration
    public Brush Brush { get; set; }
    Property Value
    Type Description
    System.Drawing.Brush

    A Brush object.

    Remarks

    The event handler should set this property for it to be used while drawing the specified bounds.

    Path

    Returns the GraphicsPath for which a brush is requested.

    Declaration
    public GraphicsPath Path { get; }
    Property Value
    Type Description
    System.Drawing.Drawing2D.GraphicsPath

    A GraphicsPath object.

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