Class StyleGradientObject
Inheritance
System.Object
StyleGradientObject
Inherited Members
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)
Namespace: Syncfusion.Windows.Forms.Tools
Assembly: Syncfusion.Shared.Base.dll
Syntax
public class StyleGradientObject
Constructors
StyleGradientObject()
Declaration
public StyleGradientObject()
StyleGradientObject(Color, Color, LinearGradientMode)
Declaration
public StyleGradientObject(Color start, Color end, LinearGradientMode mode)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Color | start | |
System.Drawing.Color | end | |
System.Drawing.Drawing2D.LinearGradientMode | mode |
Properties
EndColor
Get or set end gradient color.
Declaration
public Color EndColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
GradientMode
Get or set gradient style.
Declaration
public LinearGradientMode GradientMode { get; set; }
Property Value
Type |
---|
System.Drawing.Drawing2D.LinearGradientMode |
StartColor
Get or set start gradient color.
Declaration
public Color StartColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
Methods
FillRectangle(Graphics, GraphicsPath)
Draw control background.
Declaration
public void FillRectangle(Graphics g, GraphicsPath bounds)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | Graphics for paint. |
System.Drawing.Drawing2D.GraphicsPath | bounds | Rectangle it sketch. |
FillRectangle(Graphics, Rectangle)
Draw control background.
Declaration
public void FillRectangle(Graphics g, Rectangle bounds)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | Graphics for paint. |
System.Drawing.Rectangle | bounds | Rectangle it sketch. |
OnEndColorChanged(ValueChangedEventArgs)
Occurs when end color changed.
Declaration
protected virtual void OnEndColorChanged(ValueChangedEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
ValueChangedEventArgs | args |
OnGradientModeChanged(ValueChangedEventArgs)
Occurs when gradient mode changed.
Declaration
protected virtual void OnGradientModeChanged(ValueChangedEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
ValueChangedEventArgs | args |
OnStartColorChanged(ValueChangedEventArgs)
Occurs when start color changed.
Declaration
protected virtual void OnStartColorChanged(ValueChangedEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
ValueChangedEventArgs | args |
RaiseEndColorChanged(ValueChangedEventArgs)
Declaration
protected void RaiseEndColorChanged(ValueChangedEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
ValueChangedEventArgs | args |
RaiseGradientModeChanged(ValueChangedEventArgs)
Declaration
protected void RaiseGradientModeChanged(ValueChangedEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
ValueChangedEventArgs | args |
RaiseOnChanged(ValueChangedEventArgs)
Declaration
protected void RaiseOnChanged(ValueChangedEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
ValueChangedEventArgs | args |
RaiseStartColorChanged(ValueChangedEventArgs)
Declaration
protected void RaiseStartColorChanged(ValueChangedEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
ValueChangedEventArgs | args |
ToString()
Declaration
public override string ToString()
Returns
Type |
---|
System.String |
Overrides
System.Object.ToString()
Events
EndColorChanged
Occurs when end color changed.
Declaration
public event ValueChangedEventHandler EndColorChanged
Event Type
Type |
---|
ValueChangedEventHandler |
GradientModeChanged
Occurs when gradient mode changed.
Declaration
public event ValueChangedEventHandler GradientModeChanged
Event Type
Type |
---|
ValueChangedEventHandler |
OnChanged
Occurs when this class changed.
Declaration
public event EventHandler OnChanged
Event Type
Type |
---|
System.EventHandler |
StartColorChanged
Occurs when start color changed.
Declaration
public event ValueChangedEventHandler StartColorChanged
Event Type
Type |
---|
ValueChangedEventHandler |