LegendCell 類別

定義

表示圖例項目中的圖例資料格。

public ref class LegendCell : System::Windows::Forms::DataVisualization::Charting::ChartNamedElement
public class LegendCell : System.Windows.Forms.DataVisualization.Charting.ChartNamedElement
type LegendCell = class
    inherit ChartNamedElement
Public Class LegendCell
Inherits ChartNamedElement
繼承

備註

圖例會填入圖例專案,以 表示 LegendItemsCollection 。 這些圖例專案是由個別的圖例資料格所組成,這些儲存格會由 代表 LegendCellCollection

建構函式

LegendCell()

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

LegendCell(LegendCellType, String)

使用指定的資料格類型以及指定資料格文字或影像名稱的 text 參數,初始化 LegendCell 類別的新執行個體。

LegendCell(LegendCellType, String, ContentAlignment)

使用指定的資料格類型、內容對齊方式以及指定資料格文字或影像名稱的 text 參數,初始化 LegendCell 類別的新執行個體。

LegendCell(String)

以指定資料格文字或影像名稱的 text 參數,初始化 LegendCell 類別的新執行個體。

屬性

Alignment

取得或設定圖例資料格內容的對齊方式。

BackColor

取得或設定圖例資料格的背景色彩。

CellSpan

取得或設定用於繪製圖例資料格內容的水平資料格數量。

CellType

取得或設定用來定義圖例資料格內容的圖例資料格類型。

Font

取得或設定圖例資料格的字型。

ForeColor

取得或設定圖例資料格的文字色彩。

Image

取得或設定圖例資料格中影像的名稱。

ImageSize

取得或設定圖例資料格中影像的大小。

ImageTransparentColor

取得或設定繪製影像時,會以透明色彩取代的色彩。

Legend

取得此資料格所屬的圖例。

LegendItem

取得此資料格所屬的圖例項目。

Margins

取得或設定圖例資料格的邊界。

Name

取得或設定圖例資料格的名稱。

SeriesSymbolSize

取得或設定圖例資料格中顯示之數列符號的大小。

Tag

取得或設定與這個圖表項目關聯的物件。

(繼承來源 ChartElement)
Text

取得或設定圖例資料格文字。

ToolTip

取得或設定圖例資料格的工具提示文字。

方法

Dispose()

釋放 ChartElement 使用的資源。

(繼承來源 ChartElement)
Dispose(Boolean)

釋放 LegendCell 所使用的 Unmanaged 資源,並選擇性地釋放 Managed 資源。

Equals(Object)

判斷指定的 Object 是否等於目前的 ChartElement

(繼承來源 ChartElement)
GetHashCode()

傳回特定型別的雜湊函式。

(繼承來源 ChartElement)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

傳回表示目前 Object 的字串。

(繼承來源 ChartElement)

適用於