LegendCellCollection.Add(LegendCellType, String, ContentAlignment) Método
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
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.