Skip to content

408145bd 3b48 82c8 680a b04be2fa62d5

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

ScientificErrorModel Class

Additional header content

A Specialization of NumericErrorModel class. Represents the error structure for scientific data type. Allows us to set a default value and an additional comment.

Inheritance Hierarchy

System.Object
  iTin.Export.Model.BaseModel(BaseErrorModel)
    iTin.Export.Model.BaseErrorModel
      iTin.Export.Model.NumericErrorModel
        iTin.Export.Model.ScientificErrorModel
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 ScientificErrorModel : NumericErrorModel, 
	ICloneable

VB

<SerializableAttribute>
Public Class ScientificErrorModel
	Inherits NumericErrorModel
	Implements ICloneable

The ScientificErrorModel type exposes the following members.

Constructors

 

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

Properties

 

Name Description
Public propertyCode example Comment Gets or sets a reference that contains the error comment. (Inherited from BaseErrorModel.)
Public property IsDefault Gets a value indicating whether this instance is default. (Inherited from NumericErrorModel.)
Public property Properties Gets or sets a reference to user-defined property list for this element. (Inherited from BaseModel(T).)
Public propertyCode example Value Gets or sets preferred default value when occurs an error. (Inherited from NumericErrorModel.)
  Back to Top

Methods

 

Name Description
Public method Clone Clones this instance.
Public method Combine(BaseErrorModel) Combines this instance with reference parameter. (Inherited from BaseErrorModel.)
Public method Combine(NumericErrorModel) Combines this instance with reference parameter. (Inherited from NumericErrorModel.)
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
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.)
Protected method MemberwiseClone (Inherited from Object.)
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).)
Public method ToString Returns a string that represents the current object. (Inherited from BaseModel(T).)
  Back to Top

Remarks

Belongs to: Scientific. For more information, please see ScientificDataTypeModel. ITEE Object Element Usage

<Error>
  <Comment/>
</Error>

Attributes

Attribute Optional Description
Value Yes Preferred default value when occurs an error. The default is 0.0.
Elements  
Element Description
Comment Reference for error comment. Includes comment text, format, including font face, size, and style attributes.
  Compatibility table with native writers.
Comma-Separated Values
[!:iTin.Export.Writers.Native.CsvWriter]
Tab-Separated Values
[!:iTin.Export.Writers.Native.TsvWriter]
SQL Script
[!:iTin.Export.Writers.Native.SqlScriptWriter]
XML Spreadsheet 2003
[!:iTin.Export.Writers.Native.Spreadsheet2003TabularWriter]
X X X X
A X value indicates that the writer supports this element.

Examples

In the following example shows how create a new style with a scientific data type. XML

<Style Name="Scientific">
  <Content Color="White">
    <Scientific Decimals="3">
      <Error Value="-9999">
        <Comment Show="Yes">
          <Text>Wrong value: </Text>
        </Comment>
      </Error>           
    </Scientific>
  </Content>
</Style>

See Also

Reference

iTin.Export.Model Namespace

Clone this wiki locally