Skip to content

cf540c60 e7b9 9857 882a 882456012466

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

RealDataTypeModel.Decimals Property

Additional header content

Gets or sets number of decimal places.

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 int Decimals { get; set; }

VB

Public Property Decimals As Integer
	Get
	Set

Property Value

Type: Int32
Number of decimal places. The default is 2.

Exceptions

 

Exception Condition
ArgumentOutOfRangeException value is less than 0.

Remarks

ITEE Object Element Usage

<Percentage|NumericDataType|Scientific Decimals="int" ...>
...
</Percentage|NumericDataType|Scientific>

Compatibility table with native writers.

Comma-Separated Values
CsvWriter
Tab-Separated Values
TsvWriter
SQL Script
SqlScriptWriter
XML Spreadsheet 2003
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 currency data type (inherits NumericDataTypeModel). XML

<Style Name="AccountValue">
  <Content Color="Blue">
    <Currency Decimals="1" Locale="mk">
      <Negative Color="Red" Sign="Parenthesis">
    </Currency>
  </Content>
  <Font Size="8" Color="White"/>
</Style>

Another example for the percentage data type (inherits RealDataTypeModel).

XML

<Style Name="PercentValue">
  <Content Color="DarkGray">
    <Alignment Horizontal="Right" />
    <Percentage Decimals="1" />
  </Content>
  <Font Size="10" Bold="Yes" />
</Style>

See Also

Reference

RealDataTypeModel Class
iTin.Export.Model Namespace

Clone this wiki locally