LegendCellCollection.Add(LegendCellType, String, ContentAlignment) メソッド

定義

指定したセルの種類、テキスト、および配置を持つ凡例セルをコレクションの末尾に追加します。

public:
 int Add(System::Windows::Forms::DataVisualization::Charting::LegendCellType cellType, System::String ^ text, System::Drawing::ContentAlignment alignment);
public int Add(System.Windows.Forms.DataVisualization.Charting.LegendCellType cellType, string text, System.Drawing.ContentAlignment alignment);
override this.Add : System.Windows.Forms.DataVisualization.Charting.LegendCellType * string * System.Drawing.ContentAlignment -> int
Public Function Add (cellType As LegendCellType, text As String, alignment As ContentAlignment) As Integer

パラメーター

cellType
LegendCellType

セルの種類を表す LegendCellType 値。

text
String

cellType パラメーターの値に応じて、セル テキストまたはそのイメージ名を表すstring値。

alignment
ContentAlignment

セルのコンテンツの配置を表す ContentAlignment 値。

返品

コレクションに新しく追加された凡例セルのインデックスを表す integer 値。 インデックスは 0 から始まります。

適用対象