Skip to content

b054d3da daec 6bfe 5fa1 a5f9cdb5ed67

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

StylesModel Class

Additional header content

Root element of iTin Export Engine configuration file that contains a list with export definition.

Inheritance Hierarchy

System.Object
  iTin.Export.Model.BaseModel(BaseSimpleModelCollection(StyleModel, GlobalResourcesModel))
    iTin.Export.Model.BaseSimpleModelCollection(StyleModel, GlobalResourcesModel)
      iTin.Export.Model.BaseComplexModelCollection(StyleModel, GlobalResourcesModel, String)
        iTin.Export.Model.StylesModel
Namespace: iTin.Export.Model
Assembly: iTin.Export.Core (in iTin.Export.Core.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#

[SerializableAttribute]
public class StylesModel : BaseComplexModelCollection<StyleModel, GlobalResourcesModel, string>, 
	ICloneable

VB

<SerializableAttribute>
Public Class StylesModel
	Inherits BaseComplexModelCollection(Of StyleModel, GlobalResourcesModel, String)
	Implements ICloneable

The StylesModel type exposes the following members.

Constructors

 

Name Description
Public method StylesModel Initializes a new instance of the StylesModel class.
  Back to Top

Properties

 

Name Description
Public property Count Gets the number of elements contained in the BaseSimpleModelCollection(TItem, TParent). (Inherited from BaseSimpleModelCollection(TItem, TParent).)
Public property IsDefault When overridden in a derived class, gets a value indicating whether this instance contains the default. (Inherited from BaseSimpleModelCollection(TItem, TParent).)
Public property IsReadOnly Gets a value indicating whether the BaseSimpleModelCollection(TItem, TParent) is read-only. (Inherited from BaseSimpleModelCollection(TItem, TParent).)
Public property Item(TSearch) Gets or sets the element specified by value. (Inherited from BaseComplexModelCollection(TItem, TParent, TSearch).)
Public property Item(Int32) Gets or sets the element at the specified index. (Inherited from BaseSimpleModelCollection(TItem, TParent).)
Protected property List Gets a reference to the inner list. (Inherited from BaseSimpleModelCollection(TItem, TParent).)
Public property Parent Gets a reference to the owner of the collection (Inherited from BaseSimpleModelCollection(TItem, TParent).)
Public property Properties Gets or sets a reference to user-defined property list for this element. (Inherited from BaseModel(T).)
  Back to Top

Methods

 

Name Description
Public method Add Adds an object to the end of the BaseSimpleModelCollection(TItem, TParent). (Inherited from BaseSimpleModelCollection(TItem, TParent).)
Public method Clear Removes all elements from the BaseSimpleModelCollection(TItem, TParent). (Inherited from BaseSimpleModelCollection(TItem, TParent).)
Public method Clone Clones this instance.
Public method Contains(TSearch) Determines whether an element is in the BaseComplexModelCollection(TItem, TParent, TSearch). (Inherited from BaseComplexModelCollection(TItem, TParent, TSearch).)
Public method Contains(TItem) Determines whether an element is in the BaseSimpleModelCollection(TItem, TParent). (Inherited from BaseSimpleModelCollection(TItem, TParent).)
Public method CopyTo Copies the entire BaseSimpleModelCollection(TItem, TParent) to a compatible one-dimensional array, starting at the specified index of the target array. (Inherited from BaseSimpleModelCollection(TItem, TParent).)
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method Find Searches for an element that matches the conditions defined by the specified predicate, and returns the first occurrence within the entire BaseSimpleModelCollection(TItem, TParent). (Inherited from BaseSimpleModelCollection(TItem, TParent).)
Public method GetBy

(Overrides BaseComplexModelCollection(TItem, TParent, TSearch).GetBy(TSearch).)

Public method GetEnumerator Returns an enumerator that iterates through the BaseSimpleModelCollection(TItem, TParent). (Inherited from BaseSimpleModelCollection(TItem, TParent).)
Public method GetHashCode (Inherited from Object.)
Protected method GetStaticBindingValue Gets the static binding value by reflection. (Inherited from BaseModel(T).)
Public method GetType (Inherited from Object.)
Public method IndexOf Searches for the specified object and returns the zero-based index of the first occurrence within the entire BaseSimpleModelCollection(TItem, TParent). (Inherited from BaseSimpleModelCollection(TItem, TParent).)
Public method Insert Inserts an item to the BaseSimpleModelCollection(TItem, TParent) at the specified index. (Inherited from BaseSimpleModelCollection(TItem, TParent).)
Protected method MemberwiseClone (Inherited from Object.)
Public method Remove Removes the first occurrence of a specific object from the BaseSimpleModelCollection(TItem, TParent). (Inherited from BaseSimpleModelCollection(TItem, TParent).)
Public method RemoveAt Removes the element at the specified index of the BaseSimpleModelCollection(TItem, TParent). (Inherited from BaseSimpleModelCollection(TItem, TParent).)
Public method SaveToFile(String) Saves to file. (Inherited from BaseModel(T).)
Public method SaveToFile(String, Exception) Serializes current BaseModel object into file (Inherited from BaseModel(T).)
Public method Serialize Serializes current BaseModel object into an Xml document. (Inherited from BaseModel(T).)
Protected method SetOwner

(Overrides BaseSimpleModelCollection(TItem, TParent).SetOwner(TItem).)

Public method ToString Returns a string that represents the current object. (Inherited from BaseModel(T).)
  Back to Top

Remarks

Represents TEE root element of a configuration file. TEE Object Element Usage

<?xml version="1.0" encoding="utf-8"?>

<Exports xmlns="http://schemas.iTin.com/export/engine/2013/configuration">
<Export/>
<Export/>
...
</Exports>

Attributes  

Attribute Description
xmlns Namespace for the iTin Export Engine (TEE) configuration file.
   
Note Note
The xsd schema file that will be used to validate the document are located in the location VisualStudioInstallationFolder\Xml\Schemas, also gives us the intellisense to write quickly the document.
  Elements  
Element Description
Items Collection of export configurations. Each element is composed of a description and a data table definition.

Examples

The following example shows a full configuration file. XML

<?xml version="1.0" encoding="utf-8"?>

<Exports xmlns="http://schemas.iTin.com/export/engine/2013/configuration">
<Export Name="iTin" Current="Yes">
<Description>Sample 1</Description>
<Table Name="SCR3SFL"
AutoFilter="Yes"
AutoFitColumns="Yes"
Alias="iTin Sample 1">
<Exporter>
<Writer Name="Spreadsheet2003TabularWriter"/>
<Behaviors>
<Download/>
<TransformFile Save="Yes"/>
</Behaviors>
</Exporter>
<Output>
<File>ExampleI</File>
<Path>~\Samples\Output\Writers\Demo\XML Spreadsheet</Path>
</Output>
<Styles>
<Style Name="Header">
<Content Color="#D9E1F2">
<Alignment Horizontal="Left"/>
<Text/>
</Content>
<Font Name="Calibri" Size="11" Bold="Yes"/>
</Style>
<Style Name="PeriodValue">
<Content Color="#B4C6E7">
<Alignment Horizontal="Right"/>
<DateTime Format="Year-Month"/>
</Content>
<Font Name="Calibri" Size="11"/>
</Style>
<Style Name="EuropeValue">
<Content Color="#B4C6E7">
<Alignment Horizontal="Right"/>
<Number Decimals="1" Separator="Yes"/>
</Content>
<Font Name="Calibri" Size="11"/>
</Style>
<Style Name="AfricaValue">
<Content Color="#B4C6E7">
<Alignment Horizontal="Right"/>
<Number Decimals="1" Separator="Yes"/>
</Content>
<Font Name="Calibri" Size="11"/>
</Style>
<Style Name="AsiaValue">
<Content Color="#B4C6E7">
<Alignment Horizontal="Right"/>
<Number Decimals="1" Separator="Yes"/>
</Content>
<Font Name="Calibri" Size="11"/>
</Style>
<Style Name="NorthAmericaValue">
<Content Color="#B4C6E7">
<Alignment Horizontal="Right"/>
<Number Decimals="1" Separator="Yes"/>
</Content>
<Font Name="Calibri" Size="11"/>
</Style>
<Style Name="SouthAmericaValue">
<Content Color="#B4C6E7">
<Alignment Horizontal="Right"/>
<Number Decimals="1" Separator="Yes"/>
</Content>
<Font Name="Calibri" Size="11"/>
</Style>
<Style Name="AustraliaValue">
<Content Color="#B4C6E7">
<Alignment Horizontal="Right"/>
<Number Decimals="1" Separator="Yes"/>
</Content>
<Font Name="Calibri" Size="11"/>
</Style>
</Styles>
<Fields>
<Field Name="PERIOD" Alias="Period">
<Header Style="Header"/>
<Value Style="PeriodValue"/>
</Field>
<Field Name="EUROPE" Alias="Europe">
<Header Style="Header"/>
<Value Style="EuropeValue"/>
</Field>
<Field Name="AFRICA" Alias="Africa">
<Header Style="Header"/>
<Value Style="AfricaValue"/>
</Field>
<Field Name="ASIA" Alias="Asia">
<Header Style="Header"/>
<Value Style="AsiaValue"/>
</Field>
<Field Name="NORTHAMERICA" Alias="North America">
<Header Style="Header"/>
<Value Style="NorthAmericaValue"/>
</Field>
<Field Name="SOUTHAMERICA" Alias="South America">
<Header Style="Header"/>
<Value Style="SouthAmericaValue"/>
</Field>
<Field Name="AUSTRALIA" Alias="Australia">
<Header Style="Header"/>
<Value Style="AustraliaValue"/>
</Field>
</Fields>
</Table>
</Export>
</Exports>

See Also

Reference

iTin.Export.Model Namespace

Clone this wiki locally