Xceed Grid for WinForms v4.3 Documentation
Xceed.Editors.v2.6 Assembly / Xceed.Editors Namespace / WeekDaysHeader Class / Font Property
Example


In This Topic
    Font Property (WeekDaysHeader)
    In This Topic
    Gets or sets the font of the header.
    Syntax
    'Declaration
     
    Public Property Font As Font
    'Usage
     
    Dim instance As WeekDaysHeader
    Dim value As Font
     
    instance.Font = value
     
    value = instance.Font
    public Font Font {get; set;}

    Property Value

    A reference to a Font object representing the font to use.
    Remarks

    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 to make it bold:
    WinCalendar1.WeekDaysHeader.Font = New Font( WinCalendar1.WeekDaysHeader.Font, WinCalendar1.WeekDaysHeader.Font.Style Or FontStyle.Bold )
    winCalendar1.WeekDaysHeader.Font = new Font( winCalendar1.WeekDaysHeader.Font, winCalendar1.WeekDaysHeader.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