Gets or sets the default font for new fields.
Namespace:
C1.C1ReportAssembly: C1.C1Report.2 (in C1.C1Report.2.dll)
Syntax
C# |
---|
[DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)] public FontHolder Font { get; set; } |
Visual Basic |
---|
<DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)> _ Public Property Font As FontHolder Get Set |
Remarks
This property is not used directly when rendering the report. It is used as the default font for new fields.
Examples
The following code adds four fields to the report. The first two fields in 9pt Arial font and the last two fields in 12pt Tahoma font:
Copy CodeVisual Basic
c1r.Font.Name = "Arial" c1r.Font.Size = 9 c1r.Fields.Add("New1", "Hello", 0, 0, 1000, 300) c1r.Fields.Add("New2", "World", 1000, 0, 1000, 300) c1r.Font.Name = "Tahoma" c1r.Font.Size = 12 c1r.Fields.Add("New3", "Hello", 0, 3000, 1000, 300) c1r.Fields.Add("New4", "World", 1000, 3000, 1000, 300) |
Copy CodeC#
c1r.Font.Name = "Arial"; c1r.Font.Size = 9; c1r.Fields.Add("New1", "Hello", 0, 0, 1000, 300); c1r.Fields.Add("New2", "World", 1000, 0, 1000, 300); c1r.Font.Name = "Tahoma"; c1r.Font.Size = 12; c1r.Fields.Add("New3", "Hello", 0, 3000, 1000, 300); c1r.Fields.Add("New4", "World", 1000, 3000, 1000, 300); |