[]
Specifies whether the values corresponding to a particular data series are in rows or columns.
Used when adding data series to a chart's ISeriesCollection to indicate the orientation of the source data range.
public enum RowCol
Public Enum RowCol
worksheet.Range["A1:D3"].Value = new object[,] {
{null, "S1", "S2", "S3"},
{"Item1", 10, 25, 30},
{"Item2", 20, 35, 40}
};
IShape shape = worksheet.Shapes.AddChart(ChartType.ColumnClustered, 200, 30, 300, 300);
shape.Chart.SeriesCollection.Add(worksheet.Range["A1:D3"], RowCol.Columns, true, true);
| Name | Description |
|---|---|
| Columns | Specifies that the data series is in a row. |
| Rows | Specifies that the data series is in a column. |