95818615 6762 fb49 dabd 18244d06fbae - iAJTin/iExportEngine GitHub Wiki
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)
C#
public string Name { get; set; }VB
Public Property Name As String
Get
SetType: String
Preferred font name. If specified a font name not existent be use the default font. The default is Segoe UI.
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 |
<b>X</b> value indicates that the writer supports this element.
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
}