Skip to content

6fd821d2 d14a 35aa 9ce5 f51fd85ece61

Fernando Garcia edited this page May 8, 2018 · 1 revision

BaseDataFieldModel.Aggregate Property

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)

Syntax

C#

public FieldAggregateModel Aggregate { get; set; }

VB

Public Property Aggregate As FieldAggregateModel
	Get
	Set

Property Value

Type: FieldAggregateModel
Visual setting of aggregate function of the data field.

Remarks

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
A X value indicates that the writer supports this element.

Examples

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,
                                                   },
                               };

See Also

Reference

BaseDataFieldModel Class
iTin.Export.Model Namespace

Clone this wiki locally