| C1.Win.Calendar Namespace > CalendarSettings Class : CurrentMonthDisplayOffset Property |
'Declaration<C1CategoryAttribute("Appearance")> <C1DescriptionAttribute("Gets or sets the current month display offset.")> <DefaultValueAttribute()> <MergablePropertyAttribute(True)> Public Property CurrentMonthDisplayOffset As Integer
'UsageDim instance As CalendarSettings Dim value As Integer instance.CurrentMonthDisplayOffset = value value = instance.CurrentMonthDisplayOffset
[C1Category("Appearance")] [C1Description("Gets or sets the current month display offset.")] [DefaultValue()] [MergableProperty(true)] public int CurrentMonthDisplayOffset {get; set;}
[C1Category("Appearance")] [C1Description("Gets or sets the current month display offset.")] [DefaultValue()] [MergableProperty(true)] public: property int CurrentMonthDisplayOffset { int get(); void set ( int value); }
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;
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