DataPoint 類別

定義

代表儲存在類別中的 DataPointCollection 一個資料點。

public ref class DataPoint : System::Windows::Forms::DataVisualization::Charting::DataPointCustomProperties
[System.ComponentModel.TypeConverter("System.Windows.Forms.Design.DataVisualization.Charting.DataPointConverter, System.Windows.Forms.DataVisualization.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35")]
public class DataPoint : System.Windows.Forms.DataVisualization.Charting.DataPointCustomProperties
[<System.ComponentModel.TypeConverter("System.Windows.Forms.Design.DataVisualization.Charting.DataPointConverter, System.Windows.Forms.DataVisualization.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35")>]
type DataPoint = class
    inherit DataPointCustomProperties
Public Class DataPoint
Inherits DataPointCustomProperties
繼承
屬性

備註

這個 DataPoint 類別儲存與資料相關的屬性以及資料點值。 例如,一個資料點有值,但它同時也有顏色屬性、背景影像屬性、背景漸層屬性等等。 欲了解更多資料點屬性,請參閱 DataPointCustomProperties 職業概述主題。

每個資料點由一個 X 值和一個或多個 Y 值組成。 X值可以是零,也可以明確設定。

除了泡沫圖、蠟線圖和股票圖外,所有圖表類型每點只需一個 Y 值。 這些圖表類型需要多個 Y 值,因為一個資料點包含多個值。 例如,繪製一欄股票圖表需要四個數值:高、低、開盤和收盤。

資料可在設計時或執行時加入;你也可以在執行時使用資料綁定。

建構函式

名稱 Description
DataPoint()

初始化 DataPoint 類別的新執行個體。

DataPoint(Double, Double)

初始化一個新的類別實例 DataPoint ,並以指定的 X 和 Y 值。

DataPoint(Double, Double[])

初始化一個新的類別實例 DataPoint ,使用指定的 X 值及 Y 值陣列。

DataPoint(Double, String)

初始化一個新的類別實例 DataPoint ,並以指定的 X 值和 Y 值。

DataPoint(Series)

初始化類別的新實例DataPoint,並設定該資料點所屬的 。Series

屬性

名稱 Description
AxisLabel

取得或設定 X 軸標籤中資料點、系列或空點的文字。 此特性僅在未為相關 Axis 物件指定自訂標籤時使用。

(繼承來源 DataPointCustomProperties)
BackGradientStyle

取得或設定背景漸層風格。

(繼承來源 DataPointCustomProperties)
BackHatchStyle

取得或設定背景陰影風格。

(繼承來源 DataPointCustomProperties)
BackImage

取得或設定資料點的背景影像。

(繼承來源 DataPointCustomProperties)
BackImageAlignment

取得或設定背景影像的對齊,這會與繪圖模式一起使用 Unscaled

(繼承來源 DataPointCustomProperties)
BackImageTransparentColor

取得或設定一個顏色,當繪製背景影像時會被透明顏色取代。

(繼承來源 DataPointCustomProperties)
BackImageWrapMode

取得或設定背景影像的繪圖模式。

(繼承來源 DataPointCustomProperties)
BackSecondaryColor

取得或設定次要背景色。

(繼承來源 DataPointCustomProperties)
BorderColor

取得或設定資料點的邊框顏色。

(繼承來源 DataPointCustomProperties)
BorderDashStyle

取得或設定資料點的邊界樣式。

(繼承來源 DataPointCustomProperties)
BorderWidth

取得或設定資料點的邊界寬度。

(繼承來源 DataPointCustomProperties)
Color

取得或設定資料點的顏色。

(繼承來源 DataPointCustomProperties)
CustomProperties

取得或設定資料點的自訂屬性。 自訂屬性可依以下格式指定:AttrName1=Value1, AttrName2=Value2 ...

(繼承來源 DataPointCustomProperties)
CustomPropertiesExtended

取得或設定資料點的擴展自訂屬性。 擴充自訂屬性可依以下格式指定:AttrName1=Value1, AttrName2=Value2...

(繼承來源 DataPointCustomProperties)
Font

取得或設定資料點的字型。

(繼承來源 DataPointCustomProperties)
IsEmpty

取得或設定一個標誌,指示某資料點是否被標記為空。

IsValueShownAsLabel

取得或設定一個旗標,指示是否要在標籤上顯示資料點的值。

(繼承來源 DataPointCustomProperties)
IsVisibleInLegend

獲得或設置一個旗標,指示該物品是否出現在圖例中。

(繼承來源 DataPointCustomProperties)
Item[Int32]

根據物件在索引中的位置來取得 DataPointCustomProperties 該物件。

(繼承來源 DataPointCustomProperties)
Item[String]

透過名稱取得或設定 DataPointCustomProperties 物件。

(繼承來源 DataPointCustomProperties)
Label

取得或設定資料點標籤的文字。

(繼承來源 DataPointCustomProperties)
LabelAngle

取得或設定資料點標籤的角度。

(繼承來源 DataPointCustomProperties)
LabelBackColor

取得或設定資料點標籤的背景顏色。

(繼承來源 DataPointCustomProperties)
LabelBorderColor

取得或設定資料點標籤的邊框顏色。

(繼承來源 DataPointCustomProperties)
LabelBorderDashStyle

取得或設定標籤的邊框樣式。

(繼承來源 DataPointCustomProperties)
LabelBorderWidth

取得或設定標籤的邊框寬度。

(繼承來源 DataPointCustomProperties)
LabelForeColor

取得或設定標籤的文字顏色。

(繼承來源 DataPointCustomProperties)
LabelFormat

取得或設定資料點標籤的格式。

(繼承來源 DataPointCustomProperties)
LabelToolTip

取得或設定資料點標籤的工具提示。

(繼承來源 DataPointCustomProperties)
LegendText

取得或設定圖例中物品的文字。

(繼承來源 DataPointCustomProperties)
LegendToolTip

取得或設定傳說中物品的工具提示。

(繼承來源 DataPointCustomProperties)
MarkerBorderColor

取得或設定標記的邊框顏色。

(繼承來源 DataPointCustomProperties)
MarkerBorderWidth

取得或設定標記的邊界寬度。

(繼承來源 DataPointCustomProperties)
MarkerColor

取得或設定標記的顏色。

(繼承來源 DataPointCustomProperties)
MarkerImage

取得或設定標記影像。

(繼承來源 DataPointCustomProperties)
MarkerImageTransparentColor

取得或設定在繪製標記圖像時將被替換為透明色的顏色。

(繼承來源 DataPointCustomProperties)
MarkerSize

取得或設定標記的大小。

(繼承來源 DataPointCustomProperties)
MarkerStyle

要拿到或設定標記器。

(繼承來源 DataPointCustomProperties)
Name

取得或設定資料點的名稱。

Tag

取得或設定與此圖表元素相關的物件。

(繼承來源 ChartElement)
ToolTip

負責取得或設定提示。

(繼承來源 DataPointCustomProperties)
XValue

取得或設定某個資料點的 X 值。

YValues

取得或設定資料點的 Y 值。

方法

名稱 Description
Clone()

回傳一個與資料點完全相同的新實例。

DeleteCustomProperty(String)

刪除帶有指定名稱的資料點自訂屬性。

(繼承來源 DataPointCustomProperties)
Dispose()

釋放 所使用的 ChartElement資源。

(繼承來源 ChartElement)
Dispose(Boolean)

釋放 未管理的資源, ChartElement 並可選擇性地釋放受管理資源。

(繼承來源 ChartElement)
Equals(Object)

判斷指定的 Object 是否等於電流 ChartElement

(繼承來源 ChartElement)
GetCustomProperty(String)

回傳帶有指定名稱的資料點自訂屬性。

(繼承來源 DataPointCustomProperties)
GetHashCode()

回傳特定類型的雜湊函數。

(繼承來源 ChartElement)
GetType()

取得目前實例的 Type

(繼承來源 Object)
GetValueByName(String)

回傳一個以名稱指定的資料點。 這是一個輔助功能。

IsCustomPropertySet(String)

判斷是否設定了指定名稱的自訂屬性。

(繼承來源 DataPointCustomProperties)
MemberwiseClone()

建立目前 Object的淺層複本。

(繼承來源 Object)
ResetIsValueShownAsLabel()

將自訂屬性重置為預設值。

(繼承來源 DataPointCustomProperties)
ResetIsVisibleInLegend()

將自訂屬性重置為預設值。

(繼承來源 DataPointCustomProperties)
SetCustomProperty(String, String)

設定資料點的自訂屬性。

(繼承來源 DataPointCustomProperties)
SetDefault(Boolean)

設定資料點的預設屬性。 表示是否必須清除先前的房產價值。

(繼承來源 DataPointCustomProperties)
SetValueXY(Object, Object[])

設定資料點的 X 值及一個或多個 Y 值。

SetValueY(Object[])

設定單一資料點的 y 值。

ToString()

回傳一個代表當前 Object的字串。

(繼承來源 ChartElement)

適用於