Xceed Grid for WinForms v4.3 Documentation
Font Property (HeaderFooter)
Example 


Xceed.Grid.Reporting.v4.3 Assembly > Xceed.Grid.Reporting Namespace > HeaderFooter Class : Font Property
Gets or sets the header or footer sections' font.
Syntax
'Declaration
 
<DescriptionAttribute("The header or footer section's font.")>
<CategoryAttribute("Appearance")>
<LocalizableAttribute(True)>
<XmlIgnoreAttribute()>
<DefaultValueAttribute("")>
<EndUserBrowsableAttribute(False)>
Public Property Font As Font
'Usage
 
Dim instance As HeaderFooter
Dim value As Font
 
instance.Font = value
 
value = instance.Font
[Description("The header or footer section's font.")]
[Category("Appearance")]
[Localizable(true)]
[XmlIgnore()]
[DefaultValue("")]
[EndUserBrowsable(false)]
public Font Font {get; set;}

Property Value

A reference to a Font object representing the font of the header or footer section. By default, "Times New Roman 9 point".
Remarks

If the Font of a HeaderFooterElement has not been explicitly set, the header or footer sections' Font will be used to paint the HeaderFooterElement's text.

Because the Font object is immutable (meaning that you cannot adjust any of its properties), you can only assign the Font property a new Font object. However, you can base the new font on the existing font.

Example
The following example demonstrates how to adjust the font of a header or footer section to make it bold:
headerFooterSection.Font = New Font( headerFooterSection.Font, headerFooterSection.Font.Style Or FontStyle.Bold )
headerFooterSection.Font = new Font( headerFooterSection.Font, headerFooterSection.Font.Style | FontStyle.Bold );
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

HeaderFooter Class
HeaderFooter Members