Skip to content

baeb266c 8597 5b32 68a5 12c1b3e5d907

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

StyleModel Class

Additional header content

Defines a single style, includes definition for a font type, type of content, such as the background color, the alignment type and the data type.

Inheritance Hierarchy

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

VB

<SerializableAttribute>
Public Class StyleModel
	Inherits BaseModel(Of StyleModel)
	Implements ICloneable

The StyleModel type exposes the following members.

Constructors

 

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

Properties

 

Name Description
Public property Borders Gets or sets the collection of border properties.
Public property Content Gets or sets a reference to the content model.
Public propertyStatic member Default Gets a default style.
Public propertyStatic member Empty Gets an empty style.
Public property Font Gets or sets the font model.
Public property Inherits Gets or sets the name of parent style.
Public property IsDefault Gets a value indicating whether this instance is default. (Overrides BaseModel.IsDefault.)
Public property IsEmpty Gets a value indicating whether this style is an empty style.
Public property Name Gets or sets the name of the style.
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 Clone Clones this instance.
Public method Combine(StyleModel) Combines this instance with reference parameter.
Public method Combine(StyleModel, Boolean) Combines this instance with reference parameter.
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).)
Public method TryGetInheritStyle Try gets a reference to inherit model.
  Back to Top

Fields

 

Name Description
Public fieldStatic member NameOfDefaultStyle The name of default style. Always is 'Default'.
  Back to Top

Remarks

Type Information  

Namespace http://schemas.itin.com/export/engine/2014/configuration/v1.0
Schema name iTin Export Configuration File
  Parent Element  
Element Description
StylesModel Contains a collection of user-defined styles. Each element defines type of content, such as the background color, the alignment type, the data type and the font type.
  Child Elements  
Element Description
Borders Defines the border properties to use.
Content Defines as shown the content of a field.
Font Represents a font. Defines a particular format for text, including font face, size, and style attributes.
  Attributes
Attribute Required Description Possible Values
Name Yes Name of the style. See Name property
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 X
A X value indicates that the writer supports this element.

XML Usage

ITEE Object Element Usage

<Style>
  <Borders/>
  <Content>
    <Alignment/>
    <Numeric/> | <Currency/> | <Percentage/> | <Scientific/> | <Datetime/> | <Special/> <Text/>
  </Content>
  <Font/>
</Style>

See Also

Reference

iTin.Export.Model Namespace

Clone this wiki locally