ComponentOne CalendarView for WinForms
C1.Win.Calendar Namespace / CalendarSettings Class / CurrentMonthDisplayOffset Property
Example

In This Topic
    CurrentMonthDisplayOffset Property (CalendarSettings)
    In This Topic
    Gets or sets the current month display offset.
    Syntax
    'Declaration
     
    
    Public Property CurrentMonthDisplayOffset As Integer
    public int CurrentMonthDisplayOffset {get; set;}
    Example
    This example shows current month at the center of the multi-dimensional drop down calendar.
    c1DateEdit1.Calendar.CalendarDimensions = new Size(3, 1);
    // Display current month at the center of the calendar.
    // Other possible values:
    // 0 - (Default) - at the Right
    // 1 - Center
    // 2 - Left
    c1DateEdit1.Calendar.CurrentMonthDisplayOffset = 1;
    See Also