6fd821d2 d14a 35aa 9ce5 f51fd85ece61 - iAJTin/iExportEngine GitHub Wiki
Additional header content
Gets or sets a reference that contains the visual setting of aggregate function of the data field.
Namespace: iTin.Export.Model
Assembly: iTin.Export.Core (in iTin.Export.Core.dll) Version: 1.0.0.0 (1.0.0.0)
C#
public FieldAggregateModel Aggregate { get; set; }VB
Public Property Aggregate As FieldAggregateModel
Get
SetType: FieldAggregateModel
Visual setting of aggregate function of the data field.
ITEE Object Element Usage
<Field|Fixed|Gap|Group ...>
<Aggregate .../>
...
</Field|Fixed|Gap|Group>Compatibility table with native writers.
| Comma-Separated Values CsvWriter |
Tab-Separated Values TsvWriter |
SQL Script SqlScriptWriter |
XML Spreadsheet 2003 Spreadsheet2003TabularWriter |
|---|---|---|---|
| No has effect | No has effect | No has effect | X |
X value indicates that the writer supports this element.
In the following example shows how create a data field.
XML
<Field Name="##LINE" Alias="Line">
<Header Style="CommonHeader" Show="Yes"/>
<Value Style="LineValue"/>
<Aggregate Style="TopAggregate" Type="Count" Location="Top" Show="Yes"/>
</Field>C#
DataFieldModel lineField = new DataFieldModel
{
Name = "##LINE",
Alias = "Line",
Value = new FieldValueModel { Style = "LineValue" },
Header = new FieldHeaderModel { Style = "CommonHeader", Show = YesNo.Yes },
Aggregate = new FieldAggregateModel
{
Show = YesNo.Yes,
Style = "TopAggregate",
Location = KnownAggregateLocation.Top,
AggregateType = KnownAggregateType.Count,
},
};