Skip to content

1927e0b2 4e67 5cfc 4e2e 9468dd8f0f8b

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

PercentageDataTypeModel Class

Additional header content

A Specialization of RealDataTypeModel class.
Displays the result with a percent sign (%). You can specify the number of decimal places to use.

Inheritance Hierarchy

System.Object
  iTin.Export.Model.BaseModel(BaseDataTypeModel)
    iTin.Export.Model.BaseDataTypeModel
      iTin.Export.Model.RealDataTypeModel
        iTin.Export.Model.PercentageDataTypeModel
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 PercentageDataTypeModel : RealDataTypeModel, 
	ICloneable

VB

<SerializableAttribute>
Public Class PercentageDataTypeModel
	Inherits RealDataTypeModel
	Implements ICloneable

The PercentageDataTypeModel type exposes the following members.

Constructors

 

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

Properties

 

Name Description
Public propertyCode example Decimals Gets or sets number of decimal places. (Inherited from RealDataTypeModel.)
Public propertyCode example Error Gets or sets a reference that contains percentage data type error settings.
Public property IsDefault Gets a value indicating whether this instance is default. (Overrides RealDataTypeModel.IsDefault.)
Public property Properties Gets or sets a reference to user-defined property list for this element. (Inherited from BaseModel(T).)
Public property Type Gets a value indicating data type. (Inherited from BaseDataTypeModel.)
  Back to Top

Methods

 

Name Description
Public method Clone Clones this instance.
Public method Combine(BaseDataTypeModel) Combines this instance with reference parameter. (Inherited from BaseDataTypeModel.)
Public method Combine(PercentageDataTypeModel) Combines this instance with reference parameter.
Public method Combine(RealDataTypeModel) Combines this instance with reference parameter. (Inherited from RealDataTypeModel.)
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetDataFormat Returns data format for a data type. (Inherited from BaseDataTypeModel.)
Public method GetFormattedDataValue Returns data format for a data type. (Inherited from BaseDataTypeModel.)
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: Content. For more information, please see ContentModel. ITEE Object Element Usage

<Percentage ...>
  <Error/>
<Percentage/>

Attributes

Attribute Optional Description
Decimals Yes Number of decimal places. The default is 2.
Elements  
Element Description
Error Reference for percentage data type error settings.
  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

The following example indicate that the content should be percentage data type. XML

<Style Name="PercentValue">
  <Content Color="Blue">
    <Percentage Decimals="1">
      <Error Value="0">
        <Comment Show="Yes">
          <Font Name="Comic Sans MS" Size="16" Bold="Yes" Italic="Yes" Underline="Yes" Color="Navy"/>
        </Comment>
      </Error>
    </Percentage>
  </Content>
</Style>

See Also

Reference

iTin.Export.Model Namespace

Clone this wiki locally