[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.RowCol

RowCol Enum

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.

Namespace: GrapeCity.Documents.Excel.Drawing
Assembly: DS.Documents.Excel.dll
Syntax
public enum RowCol
Public Enum RowCol
Examples
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);

Fields

Name Description
Columns

Specifies that the data series is in a row.

Rows

Specifies that the data series is in a column.