Class ChartCategoryCollection
A typed collection of ChartCategory objects exposed via Categories.
Inherited Members
Namespace: DRIT.Spreadsheet.Chart
Assembly: DRIT.Spreadsheet.dll
Syntax
public class ChartCategoryCollection : IEnumerable<ChartCategory>, IEnumerable
Constructors
ChartCategoryCollection()
A typed collection of ChartCategory objects exposed via Categories.
Declaration
public ChartCategoryCollection()
Properties
Count
Gets the number of categories in the collection.
Declaration
public int Count { get; }
Property Value
| Type | Description |
|---|---|
| int |
this[int]
Gets the category at the specified index.
Declaration
public ChartCategory this[int index] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| int | index |
Property Value
| Type | Description |
|---|---|
| ChartCategory |
Methods
Add(ChartCategory)
Adds an existing category to the collection.
Declaration
public void Add(ChartCategory category)
Parameters
| Type | Name | Description |
|---|---|---|
| ChartCategory | category |
Add(string)
Adds a new category with the specified name and returns it.
Declaration
public ChartCategory Add(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name |
Returns
| Type | Description |
|---|---|
| ChartCategory |
Clear()
Removes all categories from the collection.
Declaration
public void Clear()
GetEnumerator()
A typed collection of ChartCategory objects exposed via Categories.
Declaration
public IEnumerator<ChartCategory> GetEnumerator()
Returns
| Type | Description |
|---|---|
| IEnumerator<ChartCategory> |
Insert(int, ChartCategory)
Inserts a category at the specified index.
Declaration
public void Insert(int index, ChartCategory category)
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | |
| ChartCategory | category |
Remove(ChartCategory)
Removes the first occurrence of the specified category.
Declaration
public bool Remove(ChartCategory category)
Parameters
| Type | Name | Description |
|---|---|---|
| ChartCategory | category |
Returns
| Type | Description |
|---|---|
| bool |
RemoveAt(int)
Removes the category at the specified index.
Declaration
public void RemoveAt(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| int | index |