Skip to content

d8c9f95f b834 cdee 2ff4 b6283b62026b

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

ContentModel.Alignment Property

Additional header content

Gets or sets content distribution.

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 ContentAlignmentModel Alignment { get; set; }

VB

Public Property Alignment As ContentAlignmentModel
	Get
	Set

Property Value

Type: ContentAlignmentModel
Reference for content distribution.

Remarks

ITEE Object Element Usage

<Content>
  <Alignment.../>
</Content>

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 AlternateColor="Red" Color="DarkBlue">
  <Alignment Horizontal="Left"/>
  <Text/>
</Content>

C#

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

VB

Dim content = New ContentModel With
{
    .AlternateColor = "Red",
    .Color = "DarkBlue",
    .DataType = New TextDataTypeModel(),
    .Alignment = New ContentAlignmentModel With { .Horizontal = KnownHorizontalAlignment.Left }
}

See Also

Reference

ContentModel Class
iTin.Export.Model Namespace

Clone this wiki locally