Remove

Remove(IChartDataPoint)

从集合中移除项目。

public bool Remove(IChartDataPoint dataPoint)
参数类型描述
dataPointIChartDataPoint要移除的数据点。

返回值

如果项目成功移除,则返回 true;否则返回 false。如果在 System.Collections.Generic.List{T} 中未找到该项目,则此方法也返回 false。

另见


Remove(int)

通过其在父系列点集合中的索引从集合中移除项目。

public void Remove(int dataPointIndex)
参数类型描述
dataPointIndexInt32数据点在父系列点集合中的索引。

异常

异常条件
ArgumentException未找到具有给定索引的点。
ArgumentOutOfRangeExceptiondataPointIndex 为负数。

另见