LegendCellCollection.Add(LegendCellType, String, ContentAlignment) Método

Definição

Adiciona uma célula de legenda com o tipo de célula, o texto e o alinhamento ao final da coleção especificados.

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

Parâmetros

cellType
LegendCellType

Um valor LegendCellType que representa o tipo de célula.

text
String

Um valor string que representa o texto da célula ou seu nome de imagem, dependendo do valor do parâmetro cellType.

alignment
ContentAlignment

Um valor ContentAlignment que representa o alinhamento do conteúdo da célula.

Retornos

Int32

Um valor integer que representa o índice da célula da legenda recém-adicionada na coleção. O índice é baseado em zero.

Aplica-se a