menu

WinForms

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

    Show / Hide Table of Contents

    Class GradientPanelExt

    Represents the class to apply the theme for GradientPanelExt control.

    Inheritance
    System.Object
    GradientPanel
    GradientPanelExt
    Implements
    IThemedControl
    INonClientPaintingSupport
    IThemeProvider
    IVisualStyle
    System.ComponentModel.ISupportInitialize
    Inherited Members
    GradientPanel.BackgroundColor
    GradientPanel.BeginInit()
    GradientPanel.Border3DStyleChanged
    GradientPanel.BorderColor
    GradientPanel.BorderColorChanged
    GradientPanel.BorderSidesChanged
    GradientPanel.BorderSingleChanged
    GradientPanel.BorderStyle
    GradientPanel.BorderStyleChanged
    GradientPanel.CanApplyTheme
    GradientPanel.CanOverrideStyle
    GradientPanel.ControlName
    GradientPanel.CreateParams
    GradientPanel.EndInit()
    GradientPanel.GetActiveThemeName()
    GradientPanel.GradientBackground
    GradientPanel.GradientBackgroundChanged
    GradientPanel.GradientColors
    GradientPanel.GradientColorsChanged
    GradientPanel.GradientPanelThemeChanged
    GradientPanel.INonClientPaintingSupport.NonClientPaint(PaintEventArgs, Rectangle, Rectangle)
    GradientPanel.IsVisualStyleEnabled
    GradientPanel.IThemeProvider.BaseThemeName
    GradientPanel.IVisualStyle.VisualTheme
    GradientPanel.OnBorder3DStyleChanged()
    GradientPanel.OnBorderColorChanged()
    GradientPanel.OnBorderSidesChanged()
    GradientPanel.OnBorderSingleChanged()
    GradientPanel.OnBorderStyleChanged()
    GradientPanel.OnCanApplyThemeChanged(Boolean)
    GradientPanel.OnCanOverrideStyleChanged(Boolean)
    GradientPanel.OnGradientBackgroundChanged()
    GradientPanel.OnGradientColorsChanged()
    GradientPanel.OnHandleCreated(EventArgs)
    GradientPanel.OnHandleDestroyed(EventArgs)
    GradientPanel.OnScroll(ScrollEventArgs)
    GradientPanel.OnThemeChanged(EventArgs)
    GradientPanel.OnVerticalGradientChanged()
    GradientPanel.RaiseThemeChanged(Object, ThemeChangedEventArgs)
    GradientPanel.RedrawBorders()
    GradientPanel.ScrollerFrame
    GradientPanel.ThemedBorder
    GradientPanel.ThemedPaintBackground(Graphics, Rectangle, Rectangle)
    GradientPanel.ThemeName
    GradientPanel.ThemeNameChanged
    GradientPanel.UseCustomScrollerFrame
    GradientPanel.VerticalGradient
    GradientPanel.VerticalGradientChanged
    GradientPanel.WndProc(Message)
    Namespace: Syncfusion.Windows.Forms.Tools
    Assembly: Syncfusion.Shared.Base.dll
    Syntax
    public class GradientPanelExt : GradientPanel, IThemedControl, INonClientPaintingSupport, IThemeProvider, IVisualStyle, ISupportInitialize
    Remarks

    For setting rounded corner, assign CornerRadius property. You can set space between the bounds of the control and border using BorderGap property. Control has two states: collapse or expand. For change this state use Collapsed property.

    Collapse/Expand state can be used with animation. For using animation, you must set Animated as true. For specifying speed animation use AnimationSpeed. To specify delay for animation use AnimationDelay.

    Control can contain Primitive, see Primitives.

    Constructors

    GradientPanelExt()

    Declaration
    public GradientPanelExt()

    Fields

    pBorderGap

    Padding like space between the bounds of the control and the borders.

    Declaration
    protected Padding pBorderGap
    Field Value
    Type
    System.Windows.Forms.Padding

    Properties

    Animated

    Gets or sets a value indicating whether the control uses animation.

    Declaration
    public bool Animated { get; set; }
    Property Value
    Type
    System.Boolean

    AnimationDelay

    Gets or sets delay for animation.

    Declaration
    public int AnimationDelay { get; set; }
    Property Value
    Type
    System.Int32

    AnimationSpeed

    Gets or sets speed of animation.

    Declaration
    public int AnimationSpeed { get; set; }
    Property Value
    Type
    System.Int32

    Border

    Gets or sets border gap.

    Declaration
    public Padding Border { get; set; }
    Property Value
    Type
    System.Windows.Forms.Padding

    Border3DStyle

    Declaration
    public Border3DStyle Border3DStyle { get; set; }
    Property Value
    Type
    System.Windows.Forms.Border3DStyle

    BorderGap

    Gets or sets border gap.

    Declaration
    public int BorderGap { get; set; }
    Property Value
    Type
    System.Int32

    BorderSides

    Declaration
    public Border3DSide BorderSides { get; set; }
    Property Value
    Type
    System.Windows.Forms.Border3DSide

    BorderSingle

    Declaration
    public ButtonBorderStyle BorderSingle { get; set; }
    Property Value
    Type
    System.Windows.Forms.ButtonBorderStyle

    CollapseAlignment

    Gets or sets alignment collapsed control.

    Declaration
    public Alignment CollapseAlignment { get; set; }
    Property Value
    Type
    Alignment

    Collapsed

    Gets or sets state of the control, collapsed or expanded.

    Declaration
    public bool Collapsed { get; set; }
    Property Value
    Type
    System.Boolean

    CornerRadius

    Gets or sets radius truncation corner of the control.

    Declaration
    public int CornerRadius { get; set; }
    Property Value
    Type
    System.Int32

    EnableTouchMode

    Gets or Sets the touchmode

    Declaration
    public bool EnableTouchMode { get; set; }
    Property Value
    Type
    System.Boolean

    ExpandLocation

    Location expanded control. When control expanded it is Empty.

    Declaration
    public Point ExpandLocation { get; set; }
    Property Value
    Type
    System.Drawing.Point

    ExpandSize

    Size expanded control. When control expanded it is Empty.

    Declaration
    public Size ExpandSize { get; set; }
    Property Value
    Type
    System.Drawing.Size

    IgnoreThemeBackground

    Declaration
    public bool IgnoreThemeBackground { get; set; }
    Property Value
    Type
    System.Boolean

    InnerBackgroundBrush

    Gets / Sets the Inner Rectangle Background Brush

    Declaration
    public BrushInfo InnerBackgroundBrush { get; set; }
    Property Value
    Type
    BrushInfo

    InnerBorderColor

    Gets / Sets the Inner Rectangle Border Color

    Declaration
    public Color InnerBorderColor { get; set; }
    Property Value
    Type
    System.Drawing.Color

    InnerBorderThickness

    Gets / Sets the Inner Rectangle Border Thickness

    Declaration
    public float InnerBorderThickness { get; set; }
    Property Value
    Type
    System.Single

    InnerRectBackgroundBrush

    Declaration
    [Obsolete]
    public BrushInfo InnerRectBackgroundBrush { get; set; }
    Property Value
    Type
    BrushInfo

    InnerRectBorderColor

    Declaration
    [Obsolete]
    public Color InnerRectBorderColor { get; set; }
    Property Value
    Type
    System.Drawing.Color

    Primitives

    Gets collection of the primitives.

    Declaration
    public PrimitiveCollection Primitives { get; set; }
    Property Value
    Type
    PrimitiveCollection

    ThemesEnabled

    Declaration
    public bool ThemesEnabled { get; set; }
    Property Value
    Type
    System.Boolean

    ThemeStyle

    Gets or sets the GradientPanelExtVisualStyle value used to customize the appearance of the GradientPanelExt.

    Declaration
    public GradientPanelExtVisualStyle ThemeStyle { get; set; }
    Property Value
    Type
    GradientPanelExtVisualStyle
    Remarks

    This ThemeStyle settings will be applied only when the VisualStyleBased theme has been applied to the control.

    Methods

    ApplyScaleToControl(Single)

    Applies the scaling

    Declaration
    public void ApplyScaleToControl(float scaleFactor)
    Parameters
    Type Name Description
    System.Single scaleFactor

    CreateAccessibilityInstance()

    Declaration
    protected override AccessibleObject CreateAccessibilityInstance()
    Returns
    Type
    System.Windows.Forms.AccessibleObject
    Overrides
    GradientPanel.CreateAccessibilityInstance()

    Dispose(Boolean)

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing
    Overrides
    GradientPanel.Dispose(Boolean)

    GetControlName(String)

    Helps to override the ThemeName property settings

    Declaration
    public override string GetControlName(string controlName)
    Parameters
    Type Name Description
    System.String controlName

    ThemeName

    Returns
    Type
    System.String
    Overrides
    GradientPanel.GetControlName(String)

    OnBackColorChanged(EventArgs)

    Declaration
    protected override void OnBackColorChanged(EventArgs e)
    Parameters
    Type Name Description
    System.EventArgs e

    OnBorderGapChanged()

    Declaration
    protected virtual void OnBorderGapChanged()

    OnCollapseAlignmentChanged()

    Declaration
    protected virtual void OnCollapseAlignmentChanged()

    OnCollapsedChanged()

    Declaration
    protected virtual void OnCollapsedChanged()

    OnControlAdded(ControlEventArgs)

    Declaration
    protected override void OnControlAdded(ControlEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.ControlEventArgs e

    OnControlRemoved(ControlEventArgs)

    Declaration
    protected override void OnControlRemoved(ControlEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.ControlEventArgs e

    OnCornerRadiusChanged()

    Declaration
    protected virtual void OnCornerRadiusChanged()

    OnCornerRadiusChangedExt()

    Invoked when corner radius changed.

    Declaration
    protected void OnCornerRadiusChangedExt()

    OnFontChanged(EventArgs)

    Font Chnaged

    Declaration
    protected override void OnFontChanged(EventArgs e)
    Parameters
    Type Name Description
    System.EventArgs e
    Overrides
    GradientPanel.OnFontChanged(EventArgs)

    OnGotFocus(EventArgs)

    Helps to override the OnGotFocus events

    Declaration
    protected override void OnGotFocus(EventArgs e)
    Parameters
    Type Name Description
    System.EventArgs e

    An System.EventArgs that contains the event data.

    OnPaint(PaintEventArgs)

    Declaration
    protected override void OnPaint(PaintEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.PaintEventArgs e
    Overrides
    GradientPanel.OnPaint(PaintEventArgs)

    OnPaintBackground(PaintEventArgs)

    Declaration
    protected override void OnPaintBackground(PaintEventArgs pevent)
    Parameters
    Type Name Description
    System.Windows.Forms.PaintEventArgs pevent
    Overrides
    GradientPanel.OnPaintBackground(PaintEventArgs)

    OnPrimitivesChanged()

    Declaration
    protected virtual void OnPrimitivesChanged()

    OnSizeChanged(EventArgs)

    Declaration
    protected override void OnSizeChanged(EventArgs e)
    Parameters
    Type Name Description
    System.EventArgs e
    Overrides
    GradientPanel.OnSizeChanged(EventArgs)

    OnThemeNameChanged(String)

    Helps to apply the ThemeName settings in control

    Declaration
    public override void OnThemeNameChanged(string themeName)
    Parameters
    Type Name Description
    System.String themeName

    ThemeName

    Overrides
    GradientPanel.OnThemeNameChanged(String)

    SetBoundsCore(Int32, Int32, Int32, Int32, BoundsSpecified)

    Declaration
    protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified)
    Parameters
    Type Name Description
    System.Int32 x
    System.Int32 y
    System.Int32 width
    System.Int32 height
    System.Windows.Forms.BoundsSpecified specified

    Events

    BorderGapChanged

    Raise by OnBorderGapChanged() method.

    Declaration
    public event EventHandler BorderGapChanged
    Event Type
    Type
    System.EventHandler

    CollapseAlignmentChanged

    Raise by OnCollapseAlignmentChanged() method.

    Declaration
    public event EventHandler CollapseAlignmentChanged
    Event Type
    Type
    System.EventHandler

    CollapsedChanged

    Raise by OnCollapsedChanged() method.

    Declaration
    public event EventHandler CollapsedChanged
    Event Type
    Type
    System.EventHandler

    CornerRadiusChanged

    Raise by OnCornerRadiusChanged() method.

    Declaration
    public event EventHandler CornerRadiusChanged
    Event Type
    Type
    System.EventHandler

    PrimitivesChanged

    Raise by OnPrimitivesChanged() method.

    Declaration
    public event EventHandler PrimitivesChanged
    Event Type
    Type
    System.EventHandler

    Implements

    IThemedControl
    INonClientPaintingSupport
    IThemeProvider
    IVisualStyle
    System.ComponentModel.ISupportInitialize
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved