menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SparkLine - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class SparkLine

    Inheritance
    System.Object
    SparkLine
    Implements
    ISparkLine
    Namespace: Syncfusion.Windows.Forms.Chart
    Assembly: Syncfusion.Chart.Windows.dll
    Syntax
    public class SparkLine : Control, ISparkLine

    Constructors

    SparkLine()

    Initializes a new instance of the SparkLine class.

    Declaration
    public SparkLine()

    Fields

    List

    Declaration
    public List<object> List
    Field Value
    Type
    System.Collections.Generic.List<System.Object>

    m_sparkLineType

    Gets or sets the series type of the sparkline control.

    Declaration
    public SparkLineType m_sparkLineType
    Field Value
    Type
    SparkLineType

    Properties

    BackInterior

    Customizes the background color of the control. By default, it is set to White color.

    Declaration
    public BrushInfo BackInterior { get; set; }
    Property Value
    Type
    BrushInfo

    ColumnStyle

    Customizes the styles of Column and WinLoss sparklines.

    Declaration
    public Column ColumnStyle { get; }
    Property Value
    Type
    Column

    ControlHeight

    Used to change Height of Sparkline control.

    Declaration
    public int ControlHeight { get; }
    Property Value
    Type
    System.Int32

    ControlWidth

    Used to change Width of Sparkline control.

    Declaration
    public int ControlWidth { get; }
    Property Value
    Type
    System.Int32

    EndPoint

    Gets or sets the EndPoint of Sparkline control.

    Declaration
    public double EndPoint { get; set; }
    Property Value
    Type
    System.Double

    HighPoint

    Gets or sets the HighPoint of Sparkline control.

    Declaration
    public double HighPoint { get; set; }
    Property Value
    Type
    System.Double

    LineStyle

    Customizes the styles of Line sparkline.

    Declaration
    public Line LineStyle { get; }
    Property Value
    Type
    Line

    LowPoint

    Gets or sets the LowPoint of Sparkline control.

    Declaration
    public double LowPoint { get; set; }
    Property Value
    Type
    System.Double

    Markers

    Enables the markers support to sparkline.

    Declaration
    public Markers Markers { get; }
    Property Value
    Type
    Markers

    NegativeItem

    Gets or sets the NegativeItem of Sparkline control.

    Declaration
    public double[] NegativeItem { get; set; }
    Property Value
    Type
    System.Double[]

    Source

    Gets or sets the data source of the Sparkline control.

    Declaration
    public object Source { get; set; }
    Property Value
    Type
    System.Object

    StartPoint

    Gets or sets the StartPoint of Sparkline control.

    Declaration
    public double StartPoint { get; set; }
    Property Value
    Type
    System.Double

    Type

    Gets or sets the series type of Sparkline control.

    Declaration
    public SparkLineType Type { get; set; }
    Property Value
    Type
    SparkLineType

    Methods

    Dispose(Boolean)

    Clean up any resources being used.

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing

    true if managed resources should be disposed; otherwise, false.

    GetEndPoint()

    Declaration
    public double GetEndPoint()
    Returns
    Type
    System.Double

    GetHighPoint()

    Declaration
    public double GetHighPoint()
    Returns
    Type
    System.Double

    GetLowPoint()

    Declaration
    public double GetLowPoint()
    Returns
    Type
    System.Double

    GetNegativePoint()

    Declaration
    public double[] GetNegativePoint()
    Returns
    Type
    System.Double[]

    GetStartPoint()

    Declaration
    public double GetStartPoint()
    Returns
    Type
    System.Double

    OnListChanged(Object, ListChangedEventArgs)

    Event that is raised when the source list changed.

    Declaration
    public void OnListChanged(object sender, ListChangedEventArgs e)
    Parameters
    Type Name Description
    System.Object sender
    System.ComponentModel.ListChangedEventArgs e

    The System.Windows.Forms.PaintEventArgs instance containing the event data.

    OnPaint(PaintEventArgs)

    Overrides the System.Windows.Forms.Control.Paint event.

    Declaration
    protected override void OnPaint(PaintEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.PaintEventArgs e

    A System.Windows.Forms.PaintEventArgs that contains the event data.

    ResetPoints()

    Used to refresh the SparkLine points.

    Declaration
    public void ResetPoints()

    Implements

    ISparkLine
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved