a9413267 1f94 7420 6259 68edffdd9468 - iAJTin/iExportEngine GitHub Wiki
Additional header content
A Specialization of NumericDataTypeModel class.
You can specify the number of decimal places that you want to use, whether you want to use a thousands separator, and how you want to display negative numbers.
System.Object
iTin.Export.Model.BaseModel(BaseDataTypeModel)
iTin.Export.Model.BaseDataTypeModel
iTin.Export.Model.RealDataTypeModel
iTin.Export.Model.NumericDataTypeModel
iTin.Export.Model.NumberDataTypeModel
Namespace: iTin.Export.Model
Assembly: iTin.Export.Core (in iTin.Export.Core.dll) Version: 1.0.0.0 (1.0.0.0)
C#
[SerializableAttribute]
public class NumberDataTypeModel : NumericDataTypeModel,
ICloneableVB
<SerializableAttribute>
Public Class NumberDataTypeModel
Inherits NumericDataTypeModel
Implements ICloneableThe NumberDataTypeModel type exposes the following members.
| Name | Description | |
|---|---|---|
![]() |
NumberDataTypeModel | Initializes a new instance of the NumberDataTypeModel class. |
| Name | Description | |
|---|---|---|
![]()
|
Decimals | Gets or sets number of decimal places. (Inherited from RealDataTypeModel.) |
![]()
|
Error | Gets or sets a reference that contains numeric data type error settings. (Inherited from NumericDataTypeModel.) |
![]() |
IsDefault | Gets a value indicating whether this instance is default. (Overrides NumericDataTypeModel.IsDefault.) |
![]()
|
Negative | Gets or sets a reference that contains the negative number format. (Inherited from NumericDataTypeModel.) |
![]() |
Properties | Gets or sets a reference to user-defined property list for this element. (Inherited from BaseModel(T).) |
![]()
|
Separator | Gets or sets a value indicating whether displays thousands separator. |
![]() |
Type | Gets a value indicating data type. (Inherited from BaseDataTypeModel.) |
| Name | Description | |
|---|---|---|
![]() |
Clone | Clones this instance. |
![]() |
Combine(BaseDataTypeModel) | Combines this instance with reference parameter. (Inherited from BaseDataTypeModel.) |
![]() |
Combine(NumberDataTypeModel) | Combines this instance with reference parameter. |
![]() |
Combine(NumericDataTypeModel) | Combines this instance with reference parameter. (Inherited from NumericDataTypeModel.) |
![]() |
Combine(RealDataTypeModel) | Combines this instance with reference parameter. (Inherited from RealDataTypeModel.) |
![]() |
Equals | (Inherited from Object.) |
![]() |
Finalize | (Inherited from Object.) |
![]() |
GetDataFormat | Returns data format for a data type. (Inherited from BaseDataTypeModel.) |
![]() |
GetFormattedDataValue | Returns data format for a data type. (Inherited from BaseDataTypeModel.) |
![]() |
GetHashCode | (Inherited from Object.) |
![]() |
GetStaticBindingValue | Gets the static binding value by reflection. (Inherited from BaseModel(T).) |
![]() |
GetType | (Inherited from Object.) |
![]() |
MemberwiseClone | (Inherited from Object.) |
![]() |
SaveToFile(String) | Saves to file. (Inherited from BaseModel(T).) |
![]() |
SaveToFile(String, Exception) | Serializes current BaseModel object into file (Inherited from BaseModel(T).) |
![]() |
Serialize | Serializes current BaseModel object into an Xml document. (Inherited from BaseModel(T).) |
![]() |
ToString | Returns a string that represents the current object. (Inherited from BaseModel(T).) |
Belongs to: Content. For more information, please see ContentModel.
ITEE Object Element Usage
<Number ...>
<Negative/>
<Error/>
<Number/>Attributes
| Attribute | Optional | Description |
|---|---|---|
| Decimals | Yes | Number of decimal places. The default is 2. |
| Separator | Yes | Determines whether to display the thousands separator. The default is No. |
| Element | Description |
|---|---|
| Error | Reference for numeric data type error settings. |
| Negative | Reference for negative number format. |
| Comma-Separated Values CsvWriter |
Tab-Separated Values TsvWriter |
SQL Script SqlScriptWriter |
XML Spreadsheet 2003 Spreadsheet2003TabularWriter |
|---|---|---|---|
| X | X | X | X |
X value indicates that the writer supports this element.
The following example indicate that the content should be number data type.
XML
<Style Name="TopAggregate">
<Content Color="#C9C9C9">
<Alignment Horizontal="Center"/>
<Number Decimals="0" Separator="Yes">
<Negative Color="Yellow" Sign="Brackets"/>
<Error Value="-9999">
<Comment Show="Yes">
<Text>Original value: </Text>
<Font Size="12" Color="Navy"/>
</Comment>
</Error>
</Number>
</Content>
<Font Name="Segoe UI" Size="12" Color="Navy" Bold="Yes"/>
</Style>

