共用方式為


LegendCell.CellType 屬性

定義

取得或設定用於定義圖例儲存格內容的圖例儲存格類型。

public:
 virtual property System::Windows::Forms::DataVisualization::Charting::LegendCellType CellType { System::Windows::Forms::DataVisualization::Charting::LegendCellType get(); void set(System::Windows::Forms::DataVisualization::Charting::LegendCellType value); };
public virtual System.Windows.Forms.DataVisualization.Charting.LegendCellType CellType { get; set; }
member this.CellType : System.Windows.Forms.DataVisualization.Charting.LegendCellType with get, set
Public Overridable Property CellType As LegendCellType

屬性值

一個 LegendCellType 枚舉值,代表用來定義圖例儲存格內容的型別。 預設值為 Text

備註

CellType 屬性決定每個圖例儲存格中將顯示的內容類型。 必須指定以下其中一種儲存格類型:

  • 文字:一個字串是利用屬性 Text 指定的,並會顯示在圖例儲存格中。

  • SeriesSymbol:序列符號由 ImageStyle 類別中的 LegendItem 屬性定義。 它會被展示給傳奇細胞看。 請記住,序列符號是一種視覺指示——一條線、矩形或標記。 當 ImageStyle 設定為 Marker時,自訂項目的所有標記屬性都會套用到該儲存格。

  • 圖片:圖片是利用屬性 Image 定義的,並會顯示在圖例格中。

適用於