Skip to content

b4e35a99 480a 81df 826f a62d35e49f01

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

ContentModel.AlternateColor Property

Additional header content

Gets or sets alternative color preferred of content.

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 string AlternateColor { get; set; }

VB

Public Property AlternateColor As String
	Get
	Set

Property Value

Type: String
Alternate color preferred. The default is Transparent.

Remarks

ITEE Object Element Usage

<Font AlternateColor="[colorName] | [#rrggbb] | [#rgb] | [sc#rrggbb] | [{StaticBinding:...}]".../>

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