The following tables list the members exposed by DataPointCollection.
Name | Description | |
---|---|---|
Count |
Gets the number of items in the collection. Number of items in the collection. | |
IsFixedSize | Gets a value indicating whether the collection has a fixed size. Gets a value indicating whether the collection has a fixed size. | |
IsReadOnly | Gets a value indicating whether the collection is read-only. Gets a value indicating whether the collection is read-only. | |
IsSynchronized | Gets a value indicating whether access to the collection is synchronized. Gets a value indicating whether access to the collection is synchronized (thread-safe). | |
Item | Gets or sets the object at the specified index within the collection. Indexer of the class. Returns the Data Point object by integer index. | |
SyncRoot | Gets an object that can be used to synchronize access to the collection. Gets an object that can be used to synchronize access to the collection. |
Name | Description | |
---|---|---|
Add | Overloaded. Adds a data point into the collection. | |
AddXY | Overloaded. Adds a data point to a series. The X and Y-values of the data point must be specified, and the position where the point is added is returned. | |
AddY | Overloaded. Adds a data point to a series. The Y-value(s) of the data point should be specified, and the position where the point is added is returned. | |
Clear | Clears the collection of all items. Removes all items from the collection. | |
Contains |
Determines if a specific object is in a collection. Check if specified object exists in the collection. | |
CopyTo |
This method is used by all Chart collections to copy all items in the collection to an array, starting at a particular array index. Copies all the elements of the current collection to the specified one-dimensional collection starting at the specified destination index. | |
DataBind |
Data binds X-value, Y-value(s) and other extended chart properties such as Tooltip, Label, etc. . to the specified data source. Data bind X, Y and other values (like Tooltip, Label,...) of the data points to the data source. Data source can be the Ole(SQL)DataReader, DataView, DataSet, DataTable or DataRow. | |
DataBindXY | Overloaded. Data binds the X-value and Y-values of the collection's data points to a specified data source. | |
DataBindY | Overloaded. Data binds the Y-value(s) of the collection's data points to a specified data source. | |
FindMaxValue | Overloaded. Finds and returns a DataPoint object with the maximum X or Y-value. | |
FindMinValue | Overloaded. Finds and returns a DataPoint object with the minimum X or Y-value. | |
FindValue | Overloaded. Finds the first data point in the collection that has a specified X or Y-value. | |
GetEnumerator | Gets a reference to the collection's enumerator. Get collection enumerator. | |
IndexOf |
This method is used by Chart collections to retrieve the index of a specified object in a collection. Gets first index of the collection item equal to the object provided. | |
Insert | Overloaded. Inserts a data point into the collection. | |
InsertXY |
Inserts a DataPoint object into the collection at the specified location, with the specified X and Y-values. The Y-value(s) of the DataPoint object added to the collection (one or more comma-separated values). Insert one data point with X value and one or more Y values. | |
InsertY |
Inserts a DataPoint object into the collection at the specified location, with the specified Y-values. The Y-value(s) of the DataPoint object added to the collection (one or more comma-separated values). Insert one data point with one or more Y values. | |
Remove |
Used by Chart collections to remove the first occurrence of a specified object from a collection. Remove object from the collection | |
RemoveAt |
Used by Chart collections to remove an item from a collection at the specified index. Remove item from the collection by index. | |
RemoveRange |
Removes a range of data points from the collection. Removes a range of data points from the collection. |