IDataPointFilter.FilterDataPoint(DataPoint, Series, Int32) 方法

定義

決定是否會篩選數列中的特定資料點。

public:
 bool FilterDataPoint(System::Web::UI::DataVisualization::Charting::DataPoint ^ point, System::Web::UI::DataVisualization::Charting::Series ^ series, int pointIndex);
public bool FilterDataPoint (System.Web.UI.DataVisualization.Charting.DataPoint point, System.Web.UI.DataVisualization.Charting.Series series, int pointIndex);
abstract member FilterDataPoint : System.Web.UI.DataVisualization.Charting.DataPoint * System.Web.UI.DataVisualization.Charting.Series * int -> bool
Public Function FilterDataPoint (point As DataPoint, series As Series, pointIndex As Integer) As Boolean

參數

point
DataPoint

要篩選的 DataPoint 物件。

series
Series

資料點所屬的 Series 物件。

pointIndex
Int32

資料點的索引,其可決定資料點在數列中的位置。

傳回

Boolean

若資料點已移除,則為 true;否則為 false

備註

您應該針對數列中的每個資料點呼叫這個方法,並傳回一個 Boolean 值,指出是否應該篩選資料點。

若要提供自訂篩選,請從介面衍生新的或現有的類別, IDataPointFilter 然後執行此方法。 提供符合邏輯的自訂準則,然後傳回 truefalse 以標示要篩選的資料點。 在實執行這個方法之後,請使用類別中的其中一個 Filter 方法定義,將 DataManipulator IDataPointFilter 物件做為參數來執行篩選。

依預設,已篩選的點會從數列中移除。 將屬性的值設定為,也可以將它們顯示為空白點 FilterSetEmptyPoints true

如果篩選的點不符合篩選準則(由值判定),也可以標示為已篩選 FilterMatchedPoints

適用於