ChartTrendLineCollection Class
Represents Trend Line Collection.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.XlsIO.Implementation.Charts
Assembly: Syncfusion.XlsIO.Base.dll
Syntax
public class ChartTrendLineCollection : CollectionBaseEx<IChartTrendLine>, IList<IChartTrendLine>, ICollection<IChartTrendLine>, IEnumerable<IChartTrendLine>, IEnumerable, IParentApplication, ICloneParent, IChartTrendLines
Constructors
ChartTrendLineCollection(IApplication, Object)
Creates new instance of collection.
Declaration
public ChartTrendLineCollection(IApplication application, object parent)
Parameters
Type | Name | Description |
---|---|---|
IApplication | application | Represents current application. |
System.Object | parent | Represents parent object. |
Properties
Item[Int32]
Gets single trend line by index. Read-only
Declaration
public IChartTrendLine this[int iIndex] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | iIndex |
Property Value
Type |
---|
IChartTrendLine |
Methods
Add()
Adds new instance of trend line to collection.
Declaration
public IChartTrendLine Add()
Returns
Type | Description |
---|---|
IChartTrendLine | Returns added trend line object. |
Add(ExcelTrendLineType)
Adds new instance of trend line to collection.
Declaration
public IChartTrendLine Add(ExcelTrendLineType type)
Parameters
Type | Name | Description |
---|---|---|
ExcelTrendLineType | type | Represents type of trend line. |
Returns
Type | Description |
---|---|
IChartTrendLine | Returns added trend line object. |
Add(ChartTrendLineImpl)
Adds trend object to trends collection.
Declaration
public void Add(ChartTrendLineImpl trend)
Parameters
Type | Name | Description |
---|---|---|
ChartTrendLineImpl | trend | Represents trend object to add. |
CheckSeriesType()
Checks series type. If current type does not support trendlines throw exception.
Declaration
public void CheckSeriesType()
Clone(Object, Dictionary<Int32, Int32>, Dictionary<String, String>)
Clones current object.
Declaration
public ChartTrendLineCollection Clone(object parent, Dictionary<int, int> dicFontIndexes, Dictionary<string, string> dicNewSheetNames)
Parameters
Type | Name | Description |
---|---|---|
System.Object | parent | Represents parent object for new cloned instance. |
System.Collections.Generic.Dictionary<System.Int32, System.Int32> | dicFontIndexes | Represents new font indexes. |
System.Collections.Generic.Dictionary<System.String, System.String> | dicNewSheetNames | Dictionary with new worksheet names. |
Returns
Type | Description |
---|---|
ChartTrendLineCollection | Returns cloned object. |
MarkUsedReferences(Boolean[])
Sets items with used reference indexes to true.
Declaration
public void MarkUsedReferences(bool[] usedItems)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean[] | usedItems | Array to mark used references in. |
RemoveAt(Int32)
Removes trend line object from collection.
Declaration
public void RemoveAt(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Represents |
UpdateReferenceIndexes(Int32[])
Updates reference indexes.
Declaration
public void UpdateReferenceIndexes(int[] arrUpdatedIndexes)
Parameters
Type | Name | Description |
---|---|---|
System.Int32[] | arrUpdatedIndexes | Array with updated indexes. |