WinForms

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class StyleGradientObject

    Show / Hide Table of Contents

    Class StyleGradientObject

    Inheritance
    System.Object
    StyleGradientObject
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    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 Description
    System.Drawing.Color

    GradientMode

    Get or set gradient style.

    Declaration
    public LinearGradientMode GradientMode { get; set; }
    Property Value
    Type Description
    System.Drawing.Drawing2D.LinearGradientMode

    StartColor

    Get or set start gradient color.

    Declaration
    public Color StartColor { get; set; }
    Property Value
    Type Description
    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 Description
    System.String
    Overrides
    System.Object.ToString()

    Events

    EndColorChanged

    Occurs when end color changed.

    Declaration
    public event ValueChangedEventHandler EndColorChanged
    Event Type
    Type Description
    ValueChangedEventHandler

    GradientModeChanged

    Occurs when gradient mode changed.

    Declaration
    public event ValueChangedEventHandler GradientModeChanged
    Event Type
    Type Description
    ValueChangedEventHandler

    OnChanged

    Occurs when this class changed.

    Declaration
    public event EventHandler OnChanged
    Event Type
    Type Description
    System.EventHandler

    StartColorChanged

    Occurs when start color changed.

    Declaration
    public event ValueChangedEventHandler StartColorChanged
    Event Type
    Type Description
    ValueChangedEventHandler
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved