Skip to content

7182bed1 ea7a 4fb6 930b ce41b0f9e1c0

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

ChartsModel Class

Additional header content

Collection of user-defined charts. Each element represents a user-defined chart.

Inheritance Hierarchy

System.Object
  iTin.Export.Model.BaseModel(BaseSimpleModelCollection(ChartModel, TableModel))
    iTin.Export.Model.BaseSimpleModelCollection(ChartModel, TableModel)
      iTin.Export.Model.ChartsModel
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 ChartsModel : BaseSimpleModelCollection<ChartModel, TableModel>

VB

<SerializableAttribute>
Public Class ChartsModel
	Inherits BaseSimpleModelCollection(Of ChartModel, TableModel)

The ChartsModel type exposes the following members.

Constructors

 

Name Description
Public method ChartsModel Initializes a new instance of the ChartsModel 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 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 Contains 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 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).)
Public method Validate Validates chart definition list.
  Back to Top

Remarks

Belongs to: Table. For more information, please see TableModel. ITEE Object Element Usage

<Charts>
  <Chart/>
  <Chart/>
  ...
</Charts>

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

Examples

XML

<Charts>
  <Chart Location="1 2" Size="500 100" BackColor="LightGray">
    <Border Show="Yes" Color="Gray" Width="Medium">            
      <Shadow Show="Yes" Transparency="0.5"/>
    </Border>
    <Legend Show="Yes">            
      <Font Name="Calibri" />          
    </Legend>
    <Title>
      <Text>Sample Report</Text>
      <Font Name="Calibri" Color="Navy" Size="22" Bold="Yes"/>
    </Title>
    <Axes>
      <Primary>
        <Category>
          <Title>
            <Text>Category</Text>
            <Font Name="Calibri" Bold="Yes"/>                  
          </Title>
          <Labels Orientation="Downward" Position="Low" Alignment="Left">                  
            <Font Name="Calibri" Size="8" Color="Red"/>                  
          </Labels>
        </Category>
        <Values>
          <Title Show="Yes" Orientation="Vertical">
            <Text>Value</Text>
            <Font Name="Calibri" Bold="Yes" Color="Green"/>
          </Title>
          <Labels Orientation="Downward" Position="Low" Alignment="Left">
            <Font Name="Calibri" Size="8" Color="Green"/>                
          </Labels>
        </Values>
      </Primary>
    </Axes>
   <Plots>            
      <Plot Name="Plot1">
        <Series>
          <Serie Field="CMCUST" Axis="CMCUST" Type="Area3D" Legend="Account" Color="Green"/>                  
          <Serie Field="##LINE" Axis="CMCUST" Type="Area3D" Legend="Line" Color="AntiqueWhite"/>
          <Serie Field="NOCOL" Axis="CMCUST" Type="Area3D" Legend="No/Col" Color="Red"/>            
        </Series>         
      </Plot>
    </Plots>
  </Chart>       
</Charts>

See Also

Reference

iTin.Export.Model Namespace

Clone this wiki locally