Class StyleGradientObject
Inheritance
System.Object
StyleGradientObject
Assembly: Syncfusion.Shared.Base.dll
public class StyleGradientObject : Object
Constructors
Declaration
public StyleGradientObject()
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
Get or set end gradient color.
Declaration
public Color EndColor { get; set; }
Property Value
| Type |
| System.Drawing.Color |
Get or set gradient style.
Declaration
public LinearGradientMode GradientMode { get; set; }
Property Value
| Type |
| System.Drawing.Drawing2D.LinearGradientMode |
Get or set start gradient color.
Declaration
public Color StartColor { get; set; }
Property Value
| Type |
| System.Drawing.Color |
Methods
Declaration
public void add_EndColorChanged(ValueChangedEventHandler value)
Parameters
Declaration
public void add_GradientModeChanged(ValueChangedEventHandler value)
Parameters
Declaration
public void add_StartColorChanged(ValueChangedEventHandler value)
Parameters
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.
|
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.
|
Occurs when end color changed.
Declaration
protected virtual void OnEndColorChanged(ValueChangedEventArgs args)
Parameters
Occurs when gradient mode changed.
Declaration
protected virtual void OnGradientModeChanged(ValueChangedEventArgs args)
Parameters
Occurs when start color changed.
Declaration
protected virtual void OnStartColorChanged(ValueChangedEventArgs args)
Parameters
Declaration
protected void RaiseEndColorChanged(ValueChangedEventArgs args)
Parameters
Declaration
protected void RaiseGradientModeChanged(ValueChangedEventArgs args)
Parameters
Declaration
protected void RaiseOnChanged(ValueChangedEventArgs args)
Parameters
Declaration
protected void RaiseStartColorChanged(ValueChangedEventArgs args)
Parameters
Declaration
public void remove_EndColorChanged(ValueChangedEventHandler value)
Parameters
Declaration
public void remove_GradientModeChanged(ValueChangedEventHandler value)
Parameters
Declaration
public void remove_StartColorChanged(ValueChangedEventHandler value)
Parameters
Declaration
public override string ToString()
Returns
Events
Occurs when end color changed.
Declaration
public event ValueChangedEventHandler EndColorChanged
Event Type
Occurs when gradient mode changed.
Declaration
public event ValueChangedEventHandler GradientModeChanged
Event Type
Occurs when this class changed.
Declaration
public event EventHandler OnChanged
Event Type
Occurs when start color changed.
Declaration
public event ValueChangedEventHandler StartColorChanged
Event Type