WinForms

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ChartTemplate - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ChartTemplate

    Provides the storing of chart properties.

    Inheritance
    System.Object
    ChartTemplate
    Inherited Members
    System.Object.ToString()
    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.Chart
    Assembly: Syncfusion.Chart.Base.dll
    Syntax
    public class ChartTemplate

    Constructors

    ChartTemplate(Type)

    Initializes a new instance of the ChartTemplate class.

    Declaration
    public ChartTemplate(Type chartType)
    Parameters
    Type Name Description
    System.Type chartType

    Type of the chart.

    Properties

    StoreAllProperties

    Specifies whether styles applied to points should also be stored in template or not

    Declaration
    [ChartTemplate(ChartTemplateSet.Simple)]
    public static bool StoreAllProperties { get; set; }
    Property Value
    Type Description
    System.Boolean

    StoreSeriesData

    Specifies whether series data should be stored in template or not

    Declaration
    [ChartTemplate(ChartTemplateSet.Simple)]
    public static bool StoreSeriesData { get; set; }
    Property Value
    Type Description
    System.Boolean

    StoreSeriesStyle

    Specifies whether series style should be stored in template or not

    Declaration
    [ChartTemplate(ChartTemplateSet.Simple)]
    public static bool StoreSeriesStyle { get; set; }
    Property Value
    Type Description
    System.Boolean

    Methods

    Apply(IChartAreaHost)

    Applies the specified chart.

    Declaration
    public void Apply(IChartAreaHost chart)
    Parameters
    Type Name Description
    IChartAreaHost chart

    The chart.

    GetValue(String)

    Gets the value.

    Declaration
    public object GetValue(string path)
    Parameters
    Type Name Description
    System.String path

    The path.

    Returns
    Type Description
    System.Object

    Returns object.

    Load(IChartAreaHost, Stream)

    Loads the specified chart.

    Declaration
    public static ChartTemplate Load(IChartAreaHost chart, Stream stream)
    Parameters
    Type Name Description
    IChartAreaHost chart

    The chart.

    System.IO.Stream stream

    The stream.

    Returns
    Type Description
    ChartTemplate

    Returns ChartTemplate with stored properties.

    Load(IChartAreaHost, String)

    Loads the specified chart.

    Declaration
    public static ChartTemplate Load(IChartAreaHost chart, string filename)
    Parameters
    Type Name Description
    IChartAreaHost chart

    The chart.

    System.String filename

    The filename.

    Returns
    Type Description
    ChartTemplate

    Returns ChartTemplate with stored properties.

    Load(Stream)

    Loads the specified stream.

    Declaration
    public void Load(Stream stream)
    Parameters
    Type Name Description
    System.IO.Stream stream

    The stream.

    Load(String)

    Loads the specified filename.

    Declaration
    public void Load(string filename)
    Parameters
    Type Name Description
    System.String filename

    The filename.

    Reset(IChartAreaHost)

    Resets the properties of the specified chart.

    Declaration
    public void Reset(IChartAreaHost chart)
    Parameters
    Type Name Description
    IChartAreaHost chart

    The chart.

    Save(IChartAreaHost, Stream)

    Saves the specified chart.

    Declaration
    public static ChartTemplate Save(IChartAreaHost chart, Stream stream)
    Parameters
    Type Name Description
    IChartAreaHost chart

    The chart.

    System.IO.Stream stream

    The stream.

    Returns
    Type Description
    ChartTemplate

    Returns ChartTemplate with stored properties.

    Save(IChartAreaHost, String)

    Saves the specified chart.

    Declaration
    public static ChartTemplate Save(IChartAreaHost chart, string filename)
    Parameters
    Type Name Description
    IChartAreaHost chart

    The chart.

    System.String filename

    The filename.

    Returns
    Type Description
    ChartTemplate

    Returns ChartTemplate with stored properties.

    Save(Stream)

    Saves the specified stream.

    Declaration
    public void Save(Stream stream)
    Parameters
    Type Name Description
    System.IO.Stream stream

    The stream.

    Save(String)

    Saves the specified stream.

    Declaration
    public void Save(string filename)
    Parameters
    Type Name Description
    System.String filename

    The filename.

    SaveSeries(Stream)

    Saves the series in specified filename.

    Declaration
    public void SaveSeries(Stream s)
    Parameters
    Type Name Description
    System.IO.Stream s

    The stream.

    Scan(IChartAreaHost)

    Scans the specified chart.

    Declaration
    public void Scan(IChartAreaHost chart)
    Parameters
    Type Name Description
    IChartAreaHost chart

    The chart.

    ScanSeries(ChartSeries)

    Scans the specified series.

    Declaration
    public void ScanSeries(ChartSeries series)
    Parameters
    Type Name Description
    ChartSeries series

    The series.

    SetValue(String, Object)

    Sets the value.

    Declaration
    public void SetValue(string path, object value)
    Parameters
    Type Name Description
    System.String path

    The path.

    System.Object value

    The value.

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