Class Grouping
- Namespace
- Dynamicweb.Tracking.Reporting
- Assembly
- Dynamicweb.Tracking.dll
Represents a grouping of data.
public class Grouping
- Inheritance
-
Grouping
- Inherited Members
Constructors
Grouping()
Initializes a new instance of the Grouping class.
public Grouping()
Properties
AllowUnsafeColumnNames
Gets or sets a value indicating whether the column names specified should be treated as safe.
I.E., wrapped in square brackets "[ ]". Default is
false
meaning treat as unsafe.public bool AllowUnsafeColumnNames { get; set; }
Property Value
DateGrouping
Gets or sets a date grouping.
public DateGrouping? DateGrouping { get; set; }
Property Value
- DateGrouping?
- The date grouping.
GroupingConcatenation
Gets or sets the grouping concatenation.
public Func<string[], string> GroupingConcatenation { get; set; }
Property Value
IsDateGrouping
Gets or sets a value indicating whether this instance is a date grouping.
[Obsolete("Use DateGrouping instead.")]
public bool IsDateGrouping { get; set; }
Property Value
- bool
true
if this instance is a date grouping; otherwise,false
.
Names
Gets the names.
public List<string> Names { get; }
Property Value
UseAlternateDatePattern
Gets or sets a value indicating whether to use alternate date pattern.
[Obsolete("Use DateGrouping instead.")]
public bool UseAlternateDatePattern { get; set; }
Property Value
- bool
true
if alternate date pattern should be used; otherwise,false
.
Methods
AddGrouping(string, Func<string, string>)
Adds a grouping.
public void AddGrouping(string name, Func<string, string> nameMapping = null)
Parameters
GetLabel(IEnumerable<object>)
Gets the label.
public string GetLabel(IEnumerable<object> values)
Parameters
values
IEnumerable<object>- The values.
Returns
GetLabelKey(IEnumerable<object>)
Gets the label key.
public string GetLabelKey(IEnumerable<object> values)
Parameters
values
IEnumerable<object>- The values.
Returns
GetLabels(string[])
Gets the labels.
public List<string> GetLabels(string[] values)
Parameters
values
string[]- The values.
Returns
GetSize()
Gets the size.
public int GetSize()
Returns
MapValue(string, string)
Maps the value.
public string MapValue(string name, string value)