Class DataCollection
- Namespace
- Dynamicweb.Tracking.Reporting
- Assembly
- Dynamicweb.Tracking.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
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
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
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
Returns
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
PrependRow(List<object>)
Prepends a row.
public void PrependRow(List<object> row)
Parameters
RemoveRow(List<object>)
Removes the row.
public bool RemoveRow(List<object> values)