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

Definição

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

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 que LegendCellType representa o tipo de célula.

text
String

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

alignment
ContentAlignment

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

Devoluções

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

Aplica-se a