Gets or sets the field's font.
Namespace:
C1.C1ReportAssembly: C1.C1Report.2 (in C1.C1Report.2.dll)
Syntax
C# |
---|
public FontHolder Font { get; set; } |
Visual Basic |
---|
Public Property Font As FontHolder Get Set |
Remarks
If you set a field's font Size property to a value that
is too large to fit the field box (defined by the Height property),
no text will appear in the field.
Examples
The following code changes the font of all fields used in the Detail section:
Copy CodeVisual Basic
Copy CodeC#

Imports C1.C1Report Dim s As Section = c1r.Sections(SectionTypeEnum.Detail) Dim f As Field For Each f In s.Fields f.Font.Name = "Arial Narrow" Next |

using C1.C1Report; Section s = c1r.Sections[SectionTypeEnum.Detail]; foreach (Field f in s.Fields) f.Font.Name = "Arial Narrow"; |