Difference between revisions of "FixedCrossTableDataSeries class"

From Catglobe Wiki
Jump to: navigation, search
Line 8: Line 8:
 
{{CGscriptParameters_Template|Type=FixedCrossTableDataItem|Name=absolute|Description=Item to add.|Comma=,}}{{CGscriptParameters_Template|Type=FixedCrossTableDataItem|Name=percentage|Description=Item to add.}}
 
{{CGscriptParameters_Template|Type=FixedCrossTableDataItem|Name=absolute|Description=Item to add.|Comma=,}}{{CGscriptParameters_Template|Type=FixedCrossTableDataItem|Name=percentage|Description=Item to add.}}
 
|Description=Add new data item.}}
 
|Description=Add new data item.}}
 +
{{CGscriptMethods_Template|ReturnType=Empty|Name=AddStat|Parameters=
 +
{{CGscriptParameters_Template|Type=FixedCrossTableDataItem|Name=statistic|Description=Item to add.}}
 +
|Description=Add new statistic item.}}
 
{{CGscriptMethods_Template|ReturnType=Empty|Name=Clear|Description=Clear collection.}}
 
{{CGscriptMethods_Template|ReturnType=Empty|Name=Clear|Description=Clear collection.}}
 
{{CGscriptMethods_Template|ReturnType=FixedCrossTableDataItem|Name=this[] { get; }|Parameters=
 
{{CGscriptMethods_Template|ReturnType=FixedCrossTableDataItem|Name=this[] { get; }|Parameters=

Revision as of 04:31, 15 April 2016

FixedCrossTableDataSeries



A data series used in FixedCrossTable

Constructors

  • () - Construct new data series.

Methods

Properties

  • FixedCrossTableDataItem AbsoluteTotal { get; set; } - Get/Set the total absolute value.
  • number Count { get; } - Number of elements.
  • string ObjectTypeName { get; } - The name of the type of object.
  • FixedCrossTableDataItem PercentageTotal { get; set; } - Get/Set the total percentage value.
  • TypeInformation TypeInformation { get; } - Get information about this class.


Examples

FixedCrossTableDataItem dataItem = new FixedCrossTableDataItem();

dataItem.Value = 5;
dataItem.SignificanceZ = 10;
FixedCrossTableDataSeries dataserie = new FixedCrossTableDataSeries();
dataserie.Add(dataItem,dataItem);
dataserie.AbsoluteTotal.Value = 20;
dataserie.PercentageTotal.Value = 100;
print(dataserie[0].Value);
print(dataserie[0].SignificanceZ);
print(dataserie.AbsoluteTotal.Value);
print(dataserie.PercentageTotal.Value);