Aracılığıyla paylaş


LegendCellCollection.Add(LegendCellType, String, ContentAlignment) Yöntem

Tanım

Belirtilen hücre türüne, metnine ve koleksiyonun sonuna hizalamaya sahip bir gösterge hücresi ekler.

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

Parametreler

cellType
LegendCellType

Hücre LegendCellType türünü temsil eden bir değer.

text
String

Parametrenin string değerine bağlı olarak hücre metnini veya görüntü adını temsil eden cellType bir değer.

alignment
ContentAlignment

Hücre ContentAlignment içeriği hizalamasını temsil eden bir değer.

Döndürülenler

Int32

Koleksiyonda integer yeni eklenen gösterge hücresi dizinini temsil eden bir değer. Dizin sıfır tabanlıdır.

Şunlara uygulanır