Skip to content

f5727f03 b743 fcbf 4240 943b8400e581

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

FontModel.Color Property

Additional header content

Gets or sets preferred font color.

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

VB

Public Property Color As String
	Get
	Set

Property Value

Type: String
Preferred font color. The default is Black.

Remarks

ITEE Object Element Usage

<Font Color="[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 font. XML

<Font Name="Tahoma" Size="8" Color="Navy" Bold="Yes" Italic="Yes" Underline="No"/>

C#

var font = new FontModel
{
    Name = "Tahoma",
    Color = "Navy",
    Size = 8.0,
    Bold = YesNo.Yes,
    Italic = YesNo.Yes,
    Underline = YesNo.No
};

VB

Dim font = New FontModel With
{
    .Name = "Tahoma",
    .Color = "Navy",
    .Size = 8.0,
    .Bold = YesNo.Yes,
    .Italic = YesNo.Yes,
    .Underline = YesNo.No
}

See Also

Reference

FontModel Class
iTin.Export.Model Namespace

Clone this wiki locally