Skip to content

51eba341 a4ce 56d7 a90c f64358a16d77

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

ContentAlignmentModel.Horizontal Property

Additional header content

Gets or sets horizontal alignment.

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 KnownHorizontalAlignment Horizontal { get; set; }

VB

Public Property Horizontal As KnownHorizontalAlignment
	Get
	Set

Property Value

Type: KnownHorizontalAlignment
One of the KnownHorizontalAlignment values. The default is Left.

Exceptions

 

Exception Condition
InvalidEnumArgumentException The value specified is outside the range of valid values.

Remarks

ITEE Object Element Usage

<Alignment Horizontal="Left|Center|Right" .../>

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.

Examples

In the following example shows how create a new content. XML

<Content Color="DarkBlue">
  <Alignment Horizontal="Left"/>
  <Text/>
</Content>

C#

ContentModel content = new ContentModel
                           {
                               Color = "DarkBlue",
                               DataType = new TextDataTypeModel(),
                               Alignment = new ContentAlignmentModel { Horizontal = KnownHorizontalAlignment.Left }
                           };

See Also

Reference

ContentAlignmentModel Class
iTin.Export.Model Namespace

Clone this wiki locally