Class GradientPanelExt
Inheritance
System.Object
GradientPanelExt
Implements
System.ComponentModel.ISupportInitialize
Assembly: Syncfusion.Shared.Base.dll
public class GradientPanelExt : GradientPanel, IThemedControl, INonClientPaintingSupport, IThemeProvider, IVisualStyle, ISupportInitialize
Constructors
Declaration
public GradientPanelExt()
Fields
Padding like space between the bounds of the control and the borders.
Declaration
protected Padding pBorderGap
Field Value
Type |
Description |
System.Windows.Forms.Padding |
|
Properties
Gets or sets a value indicating whether the control uses animation.
Declaration
public bool Animated { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Gets or sets delay for animation.
Declaration
public int AnimationDelay { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Gets or sets speed of animation.
Declaration
public int AnimationSpeed { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Declaration
public Padding Border { get; set; }
Property Value
Type |
Description |
System.Windows.Forms.Padding |
|
Declaration
public Border3DStyle Border3DStyle { get; set; }
Property Value
Type |
Description |
System.Windows.Forms.Border3DStyle |
|
Declaration
public int BorderGap { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Declaration
public Border3DSide BorderSides { get; set; }
Property Value
Type |
Description |
System.Windows.Forms.Border3DSide |
|
Declaration
public ButtonBorderStyle BorderSingle { get; set; }
Property Value
Type |
Description |
System.Windows.Forms.ButtonBorderStyle |
|
Gets or sets alignment collapsed control.
Declaration
public Alignment CollapseAlignment { get; set; }
Property Value
Gets or sets state of the control, collapsed or expanded.
Declaration
public bool Collapsed { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Gets or sets radius truncation corner of the control.
Declaration
public int CornerRadius { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Gets or Sets the touchmode
Declaration
public bool EnableTouchMode { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Location expanded control.
When control expanded it is Empty.
Declaration
public Point ExpandLocation { get; set; }
Property Value
Type |
Description |
System.Drawing.Point |
|
Size expanded control.
When control expanded it is Empty.
Declaration
public Size ExpandSize { get; set; }
Property Value
Type |
Description |
System.Drawing.Size |
|
Declaration
public bool IgnoreThemeBackground { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Gets / Sets the Inner Rectangle Background Brush
Declaration
public BrushInfo InnerBackgroundBrush { get; set; }
Property Value
Gets / Sets the Inner Rectangle Border Color
Declaration
public Color InnerBorderColor { get; set; }
Property Value
Type |
Description |
System.Drawing.Color |
|
Gets / Sets the Inner Rectangle Border Thickness
Declaration
public float InnerBorderThickness { get; set; }
Property Value
Type |
Description |
System.Single |
|
Declaration
[Obsolete]
public BrushInfo InnerRectBackgroundBrush { get; set; }
Property Value
Declaration
[Obsolete]
public Color InnerRectBorderColor { get; set; }
Property Value
Type |
Description |
System.Drawing.Color |
|
Gets collection of the primitives.
Declaration
public PrimitiveCollection Primitives { get; set; }
Property Value
Declaration
public bool ThemesEnabled { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public GradientPanelExtVisualStyle ThemeStyle { get; set; }
Property Value
Methods
Declaration
public void ApplyScaleToControl(float scaleFactor)
Parameters
Type |
Name |
Description |
System.Single |
scaleFactor |
|
Declaration
protected override AccessibleObject CreateAccessibilityInstance()
Returns
Type |
Description |
System.Windows.Forms.AccessibleObject |
|
Overrides
Declaration
protected override void Dispose(bool disposing)
Parameters
Type |
Name |
Description |
System.Boolean |
disposing |
|
Overrides
Helps to override the ThemeName property settings
Declaration
public override string GetControlName(string controlName)
Parameters
Type |
Name |
Description |
System.String |
controlName |
ThemeName
|
Returns
Type |
Description |
System.String |
|
Overrides
Declaration
protected override void OnBackColorChanged(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
Declaration
protected virtual void OnBorderGapChanged()
Declaration
protected virtual void OnCollapseAlignmentChanged()
Declaration
protected virtual void OnCollapsedChanged()
Declaration
protected override void OnControlAdded(ControlEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.ControlEventArgs |
e |
|
Declaration
protected override void OnControlRemoved(ControlEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.ControlEventArgs |
e |
|
Declaration
protected virtual void OnCornerRadiusChanged()
Invoked when corner radius changed.
Declaration
protected void OnCornerRadiusChangedExt()
Declaration
protected override void OnFontChanged(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
Overrides
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.
|
Declaration
protected override void OnPaint(PaintEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.PaintEventArgs |
e |
|
Overrides
Declaration
protected override void OnPaintBackground(PaintEventArgs pevent)
Parameters
Type |
Name |
Description |
System.Windows.Forms.PaintEventArgs |
pevent |
|
Overrides
Declaration
protected virtual void OnPrimitivesChanged()
Declaration
protected override void OnSizeChanged(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
Overrides
Helps to apply the ThemeName settings in control
Declaration
public override void OnThemeNameChanged(string themeName)
Parameters
Type |
Name |
Description |
System.String |
themeName |
ThemeName
|
Overrides
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
Declaration
public event EventHandler BorderGapChanged
Event Type
Type |
Description |
System.EventHandler |
|
Declaration
public event EventHandler CollapseAlignmentChanged
Event Type
Type |
Description |
System.EventHandler |
|
Declaration
public event EventHandler CollapsedChanged
Event Type
Type |
Description |
System.EventHandler |
|
Declaration
public event EventHandler CornerRadiusChanged
Event Type
Type |
Description |
System.EventHandler |
|
Declaration
public event EventHandler PrimitivesChanged
Event Type
Type |
Description |
System.EventHandler |
|
Implements
System.ComponentModel.ISupportInitialize