Class ChartIntervalCollection
Collection of ChartDateTimeInterval. Each ChartDateTimeRange object has an associated set of intervals that can be used to iterate over the range. ChartIntervalCollection is the repository for these intervals. Intervals
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Chart
Assembly: Syncfusion.Chart.Base.dll
Syntax
public sealed class ChartIntervalCollection : IEnumerable
Constructors
ChartIntervalCollection(ChartDateTimeRange)
Initializes a new instance of the ChartIntervalCollection class.
Declaration
public ChartIntervalCollection(ChartDateTimeRange parent)
Parameters
Type | Name | Description |
---|---|---|
ChartDateTimeRange | parent | Range that is to be associated with all ChartDateTimeInterval registered with this collection. |
Properties
Item[String]
Looks up the collection and returns the ChartDateTimeInterval with the specified name.
Declaration
public ChartDateTimeInterval this[string name] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.String | name |
Property Value
Type | Description |
---|---|
ChartDateTimeInterval | The registration name of the ChartDateTimeInterval to look for. |
Methods
Clear()
Removes all registered intervals including the default interval.
Declaration
public void Clear()
Register(String, ChartDateTimeInterval)
Registers an interval with this collection.
Declaration
public void Register(string name, ChartDateTimeInterval interval)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The registration name of the ChartDateTimeInterval that is to be registered. |
ChartDateTimeInterval | interval | The interval that is to be registered. |
Remove(String)
Looks up the collection and removes the ChartDateTimeInterval with the specified name.
Declaration
public void Remove(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The registration name of the ChartDateTimeInterval to look for. |
Reset()
Removes all registered intervals except the default interval.
Declaration
public void Reset()
ToString()
Overridden. Returns a string representation of this collection.
Declaration
public override string ToString()
Returns
Type |
---|
System.String |
Overrides
Explicit Interface Implementations
IEnumerable.GetEnumerator()
Returns an enumerator that iterates through a collection.
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.IEnumerator | An System.Collections.IEnumerator object that can be used to iterate through the collection. |