Table of Contents

Class DataCollection

Namespace
Dynamicweb.Tracking.Reporting
Assembly
Dynamicweb.Core.dll

Represents a collection of data.

public class DataCollection : IEnumerable<List<object>>, IEnumerable
Inheritance
DataCollection
Implements
Inherited Members
Extension Methods

Properties

Columns

Gets or sets the columns.

public List<string> Columns { get; set; }

Property Value

List<string>

The columns.

Count

Gets the count.

public int Count { get; }

Property Value

int

The count.

End

Gets or sets the end time of the time range.

public DateTime End { get; set; }

Property Value

DateTime

The end time of the time range.

Groups

Gets or sets the groups.

public List<Grouping>? Groups { get; set; }

Property Value

List<Grouping>

The groups.

MaxLabels

Gets or sets the maximum number of labels.

public int MaxLabels { get; set; }

Property Value

int

The maximum maximum number of labels.

Properties

Gets or sets the properties.

public Dictionary<string, string> Properties { get; set; }

Property Value

Dictionary<string, string>

The properties.

Start

Gets or sets the start time of the time range.

public DateTime Start { get; set; }

Property Value

DateTime

The start time of the time range.

Methods

AddCell(int, object)

Adds a cell.

public void AddCell(int row, object value)

Parameters

row int

The row index.

value object

The value.

AddRow(IEnumerable<object>)

Adds a row.

public void AddRow(IEnumerable<object> values)

Parameters

values IEnumerable<object>

The row values.

GetCell(int, int)

Gets the cell.

public object GetCell(int row, int column)

Parameters

row int

The row.

column int

The column.

Returns

object

GetEnumerator()

Returns an enumerator that iterates through the collection.

public IEnumerator<List<object>> GetEnumerator()

Returns

IEnumerator<List<object>>

An enumerator that can be used to iterate through the collection.

GetRow(int)

Gets a row by index.

public IList<object> GetRow(int row)

Parameters

row int

The row index.

Returns

IList<object>

PrependRow(List<object>)

Prepends a row.

public void PrependRow(List<object> row)

Parameters

row List<object>

The row values.

RemoveRow(List<object>)

Removes the row.

public bool RemoveRow(List<object> values)

Parameters

values List<object>

The row to remove.

Returns

bool
To top