共用方式為


DataPointCustomProperties 類別

定義

定義資料點、級數與空點共有的自訂屬性。

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

備註

此類別定義自訂屬性,如顏色、背景影像使用、陰影設計等。

Series類別、DataPoint類別與EmptyPointStyle性質皆由此類別衍生而來。

建構函式

名稱 Description
DataPointCustomProperties()

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

DataPointCustomProperties(Series, Boolean)

初始化一個新的類別實例 DataPointCustomProperties ,並使用指定的系列與自訂屬性標誌。

屬性

名稱 Description
AxisLabel

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

BackGradientStyle

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

BackHatchStyle

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

BackImage

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

BackImageAlignment

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

BackImageTransparentColor

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

BackImageWrapMode

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

BackSecondaryColor

取得或設定次要背景色。

BorderColor

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

BorderDashStyle

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

BorderWidth

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

Color

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

CustomProperties

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

CustomPropertiesExtended

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

Font

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

IsValueShownAsLabel

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

IsVisibleInLegend

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

Item[Int32]

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

Item[String]

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

Label

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

LabelAngle

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

LabelBackColor

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

LabelBorderColor

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

LabelBorderDashStyle

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

LabelBorderWidth

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

LabelForeColor

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

LabelFormat

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

LabelToolTip

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

LegendText

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

LegendToolTip

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

MarkerBorderColor

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

MarkerBorderWidth

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

MarkerColor

取得或設定標記的顏色。

MarkerImage

取得或設定標記影像。

MarkerImageTransparentColor

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

MarkerSize

取得或設定標記的大小。

MarkerStyle

要拿到或設定標記器。

Name

取得或設定圖表元素的名稱。

(繼承來源 ChartNamedElement)
Tag

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

(繼承來源 ChartElement)
ToolTip

負責取得或設定提示。

方法

名稱 Description
DeleteCustomProperty(String)

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

Dispose()

釋放 所使用的 ChartElement資源。

(繼承來源 ChartElement)
Dispose(Boolean)

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

(繼承來源 ChartElement)
Equals(Object)

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

(繼承來源 ChartElement)
GetCustomProperty(String)

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

GetHashCode()

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

(繼承來源 ChartElement)
GetType()

取得目前實例的 Type

(繼承來源 Object)
IsCustomPropertySet(String)

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

MemberwiseClone()

建立目前 Object的淺層複本。

(繼承來源 Object)
ResetIsValueShownAsLabel()

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

ResetIsVisibleInLegend()

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

SetCustomProperty(String, String)

設定資料點的自訂屬性。

SetDefault(Boolean)

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

ToString()

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

(繼承來源 ChartElement)

適用於