alexa
menu

WinForms

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

    Show / Hide Table of Contents

    Class ProvideGroupBarItemBrushEventArgs

    Provides data for the ProvideGroupBarItemBrush event.

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

    The GroupBar control uses the ProvideGroupBarItemBrush event to obtain a custom brush from the application to draw the background region of a GroupBarItem. ProvideGroupBarItemBrushEventHandler

    Constructors

    ProvideGroupBarItemBrushEventArgs(Int32, Rectangle)

    Creates an instance of the ProvideBrushEventArgs class.

    Declaration
    public ProvideGroupBarItemBrushEventArgs(int item, Rectangle bounds)
    Parameters
    Type Name Description
    System.Int32 item

    The index of the group bar item for which the brush is requested.

    System.Drawing.Rectangle bounds

    The bounds for which a brush is requested.

    Properties

    BackgroundBrush

    Gets / sets the brush that will be used to draw the specified bounds.

    Declaration
    public Brush BackgroundBrush { 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.

    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.

    Item

    Returns the index of the GroupBarItem being drawn.

    Declaration
    public int Item { get; }
    Property Value
    Type Description
    System.Int32

    An Integer value.

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