Class GradientPanelExt
Represents panel that has border and collection of Primitive
that can be drawn on border. Control perhaps has rounded or right corner.
Inheritance
System.Object
GradientPanelExt
Implements
System.ComponentModel.ISupportInitialize
Assembly: Syncfusion.Shared.Base.dll
public class GradientPanelExt : GradientPanel, IThemedControl, INonClientPaintingSupport, ISupportInitialize, IThemeProvider, IVisualStyle
Constructors
Declaration
public GradientPanelExt()
Fields
Padding like space between the bounds of the control and the borders.
Declaration
protected Padding pBorderGap
Field Value
| Type |
| System.Windows.Forms.Padding |
Properties
Gets or sets a value indicating whether the control uses animation.
Declaration
public bool Animated { get; set; }
Property Value
Gets or sets delay for animation.
Declaration
public int AnimationDelay { get; set; }
Property Value
Gets or sets speed of animation.
Declaration
public int AnimationSpeed { get; set; }
Property Value
Declaration
public Padding Border { get; set; }
Property Value
| Type |
| System.Windows.Forms.Padding |
Declaration
public Border3DStyle Border3DStyle { get; set; }
Property Value
| Type |
| System.Windows.Forms.Border3DStyle |
Declaration
public int BorderGap { get; set; }
Property Value
Declaration
public Border3DSide BorderSides { get; set; }
Property Value
| Type |
| System.Windows.Forms.Border3DSide |
Declaration
public ButtonBorderStyle BorderSingle { get; set; }
Property Value
| Type |
| 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
Gets or sets radius truncation corner of the control.
Declaration
public int CornerRadius { get; set; }
Property Value
Gets or Sets the touchmode
Declaration
public bool EnableTouchMode { get; set; }
Property Value
Location expanded control.
When control expanded it is Empty.
Declaration
public Point ExpandLocation { get; set; }
Property Value
| Type |
| System.Drawing.Point |
Size expanded control.
When control expanded it is Empty.
Declaration
public Size ExpandSize { get; set; }
Property Value
Declaration
public bool IgnoreThemeBackground { get; set; }
Property Value
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 |
| System.Drawing.Color |
Gets / Sets the Inner Rectangle Border Thickness
Declaration
public float InnerBorderThickness { get; set; }
Property Value
Declaration
[Obsolete]
public BrushInfo InnerRectBackgroundBrush { get; set; }
Property Value
Declaration
[Obsolete]
public Color InnerRectBorderColor { get; set; }
Property Value
| Type |
| System.Drawing.Color |
Gets collection of the primitives.
Declaration
public PrimitiveCollection Primitives { get; set; }
Property Value
Declaration
public bool ThemesEnabled { get; set; }
Property Value
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 |
| 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
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
Declaration
public event EventHandler CollapseAlignmentChanged
Event Type
Declaration
public event EventHandler CollapsedChanged
Event Type
Declaration
public event EventHandler CornerRadiusChanged
Event Type
Declaration
public event EventHandler PrimitivesChanged
Event Type
Implements
System.ComponentModel.ISupportInitialize