Skip to content

95818615 6762 fb49 dabd 18244d06fbae

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

FontModel.Name Property

Additional header content

Gets or sets preferred font name.

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

VB

Public Property Name As String
	Get
	Set

Property Value

Type: String
Preferred font name. If specified a font name not existent be use the default font. The default is Segoe UI.

Remarks

ITEE Object Element Usage

<Font Name="[string] | [{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 <b>X</b> value indicates that the writer supports this element.

Examples

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

<Font Name="{StaticBinding:UseThisFontNameFromCode}" Size="8" Color="Navy" Bold="Yes" Italic="Yes" Underline="No"/>

C#

var font = new FontModel
{
    Name = "{StaticBinding:UseThisFontNameFromCode}", // Call UseThisFontNameFromCode user-defined property when trying to get the value of font.Name
    Color = "Navy",
    Size = 8.0,
    Bold = YesNo.Yes,
    Italic = YesNo.Yes,
    Underline = YesNo.No
};

VB

Dim font = New FontModel With
{
    .Name = "{StaticBinding:UseThisFontNameFromCode}", ' Call UseThisFontNameFromCode user-defined property when trying to get the value of font.Name
    .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