📄 mainform.designer.cs
字号:
this.calendar1.MonthDays.SelectedDay.Background.Gradient = MonthCalendar.GradientStyle.Vertical;
this.calendar1.MonthDays.SelectedDay.Background.Parent = this.calendar1.MonthDays.SelectedDay;
this.calendar1.MonthDays.SelectedDay.Background.StartColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(222)))), ((int)(((byte)(185)))));
this.calendar1.MonthDays.SelectedDay.Background.Style = MonthCalendar.EStyle.esColor;
this.calendar1.MonthDays.SelectedDay.Background.TransparencyEndColor = 255;
this.calendar1.MonthDays.SelectedDay.Background.TransparencyStartColor = 255;
this.calendar1.MonthDays.SelectedDay.Border.BorderColor = System.Drawing.Color.White;
this.calendar1.MonthDays.SelectedDay.Border.Parent = this.calendar1.MonthDays.SelectedDay;
this.calendar1.MonthDays.SelectedDay.Border.Transparency = 255;
this.calendar1.MonthDays.SelectedDay.Border.Visible = false;
this.calendar1.MonthDays.SelectedDay.Font = new System.Drawing.Font("Tahoma", 9F);
this.calendar1.MonthDays.SelectedDay.ForeColor = System.Drawing.Color.Black;
this.calendar1.MonthDays.ShowTrailingDays = true;
this.calendar1.MonthDays.SundayColor = System.Drawing.Color.Red;
this.calendar1.MonthDays.TextTransparency = 255;
this.calendar1.MonthDays.TodayColor = System.Drawing.Color.Blue;
this.calendar1.MonthDays.TrailingDays.Background.EndColor = System.Drawing.Color.Black;
this.calendar1.MonthDays.TrailingDays.Background.Gradient = MonthCalendar.GradientStyle.Vertical;
this.calendar1.MonthDays.TrailingDays.Background.Parent = this.calendar1.MonthDays.TrailingDays;
this.calendar1.MonthDays.TrailingDays.Background.StartColor = System.Drawing.Color.White;
this.calendar1.MonthDays.TrailingDays.Background.Style = MonthCalendar.EStyle.esTransparent;
this.calendar1.MonthDays.TrailingDays.Background.TransparencyEndColor = 255;
this.calendar1.MonthDays.TrailingDays.Background.TransparencyStartColor = 255;
this.calendar1.MonthDays.TrailingDays.Border.BorderColor = System.Drawing.Color.White;
this.calendar1.MonthDays.TrailingDays.Border.Parent = this.calendar1.MonthDays.TrailingDays;
this.calendar1.MonthDays.TrailingDays.Border.Transparency = 255;
this.calendar1.MonthDays.TrailingDays.Border.Visible = false;
this.calendar1.MonthDays.TrailingDays.Font = new System.Drawing.Font("Tahoma", 9F);
this.calendar1.MonthDays.TrailingDays.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(140)))), ((int)(((byte)(140)))), ((int)(((byte)(140)))));
this.calendar1.MonthImages.AprilImage = ((System.Drawing.Image)(resources.GetObject("calendar1.MonthImages.AprilImage")));
this.calendar1.MonthImages.AugustImage = ((System.Drawing.Image)(resources.GetObject("calendar1.MonthImages.AugustImage")));
this.calendar1.MonthImages.DecemberImage = ((System.Drawing.Image)(resources.GetObject("calendar1.MonthImages.DecemberImage")));
this.calendar1.MonthImages.FebruaryImage = ((System.Drawing.Image)(resources.GetObject("calendar1.MonthImages.FebruaryImage")));
this.calendar1.MonthImages.ImagePosition = MonthCalendar.MonthImagePosition.Top;
this.calendar1.MonthImages.ImagesHeight = 68;
this.calendar1.MonthImages.JanuaryImage = ((System.Drawing.Image)(resources.GetObject("calendar1.MonthImages.JanuaryImage")));
this.calendar1.MonthImages.JulyImage = ((System.Drawing.Image)(resources.GetObject("calendar1.MonthImages.JulyImage")));
this.calendar1.MonthImages.JuneImage = ((System.Drawing.Image)(resources.GetObject("calendar1.MonthImages.JuneImage")));
this.calendar1.MonthImages.MarchImage = ((System.Drawing.Image)(resources.GetObject("calendar1.MonthImages.MarchImage")));
this.calendar1.MonthImages.MayImage = ((System.Drawing.Image)(resources.GetObject("calendar1.MonthImages.MayImage")));
this.calendar1.MonthImages.NovemberImage = ((System.Drawing.Image)(resources.GetObject("calendar1.MonthImages.NovemberImage")));
this.calendar1.MonthImages.OctoberImage = ((System.Drawing.Image)(resources.GetObject("calendar1.MonthImages.OctoberImage")));
this.calendar1.MonthImages.SeptemberImage = ((System.Drawing.Image)(resources.GetObject("calendar1.MonthImages.SeptemberImage")));
this.calendar1.MonthImages.UseImages = true;
this.calendar1.Name = "calendar1";
this.calendar1.OnlyMonthMode = false;
this.calendar1.SelectedDate = new System.DateTime(2007, 6, 20, 0, 0, 0, 0);
this.calendar1.SelectionMode = MonthCalendar.SelectionMode.smMulti;
this.calendar1.Size = new System.Drawing.Size(321, 300);
this.calendar1.StartWithZoom = MonthCalendar.ViewMode.vmMonth;
this.calendar1.TabIndex = 2;
this.calendar1.WeekDays.Align = MonthCalendar.HeaderAlign.Center;
this.calendar1.WeekDays.Background.EndColor = System.Drawing.Color.Black;
this.calendar1.WeekDays.Background.Gradient = MonthCalendar.GradientStyle.Vertical;
this.calendar1.WeekDays.Background.Parent = this.calendar1.WeekDays;
this.calendar1.WeekDays.Background.StartColor = System.Drawing.Color.Maroon;
this.calendar1.WeekDays.Background.Style = MonthCalendar.EStyle.esColor;
this.calendar1.WeekDays.Background.TransparencyEndColor = 255;
this.calendar1.WeekDays.Background.TransparencyStartColor = 255;
this.calendar1.WeekDays.Border.BorderColor = System.Drawing.Color.Black;
this.calendar1.WeekDays.Border.Parent = this.calendar1.WeekDays;
this.calendar1.WeekDays.Border.Transparency = 255;
this.calendar1.WeekDays.Border.Visible = true;
this.calendar1.WeekDays.Font = new System.Drawing.Font("Segoe UI", 8.25F);
this.calendar1.WeekDays.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(155)))), ((int)(((byte)(155)))), ((int)(((byte)(155)))));
this.calendar1.WeekDays.TextTransparency = 255;
this.calendar1.WeekDays.Visible = true;
this.calendar1.Weeknumbers.Align = MonthCalendar.WeekNumberAlign.Center;
this.calendar1.Weeknumbers.Background.EndColor = System.Drawing.Color.Black;
this.calendar1.Weeknumbers.Background.Gradient = MonthCalendar.GradientStyle.Vertical;
this.calendar1.Weeknumbers.Background.Parent = this.calendar1.Weeknumbers;
this.calendar1.Weeknumbers.Background.StartColor = System.Drawing.Color.Maroon;
this.calendar1.Weeknumbers.Background.Style = MonthCalendar.EStyle.esColor;
this.calendar1.Weeknumbers.Background.TransparencyEndColor = 255;
this.calendar1.Weeknumbers.Background.TransparencyStartColor = 255;
this.calendar1.Weeknumbers.Border.BorderColor = System.Drawing.Color.Black;
this.calendar1.Weeknumbers.Border.Parent = this.calendar1.Weeknumbers;
this.calendar1.Weeknumbers.Border.Transparency = 255;
this.calendar1.Weeknumbers.Border.Visible = true;
this.calendar1.Weeknumbers.Font = new System.Drawing.Font("Segoe UI", 8.25F);
this.calendar1.Weeknumbers.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(155)))), ((int)(((byte)(155)))), ((int)(((byte)(155)))));
this.calendar1.Weeknumbers.Padding = 5;
this.calendar1.Weeknumbers.TextTransparency = 255;
this.calendar1.Weeknumbers.Visible = true;
this.calendar1.OnlyMonthModeChanged += new System.EventHandler(this.calendar1_OnlyMonthModeChanged);
this.calendar1.YearsGroupRender += new MonthCalendar.YearGroupRenderEventHandler(this.calendar1_YearsGroupRender);
this.calendar1.MonthImagesChanged += new System.EventHandler(this.calendar1_MonthImagesChanged);
this.calendar1.SelectionStart += new System.EventHandler(this.calendar1_SelectionStart);
this.calendar1.KeyboardChanged += new System.EventHandler(this.calendar1_KeyboardChanged);
this.calendar1.MonthDaysChanged += new System.EventHandler(this.calendar1_MonthDaysChanged);
this.calendar1.ZoomOut += new MonthCalendar.ZoomEventHandler(this.calendar1_ZoomOut);
this.calendar1.HeaderChanged += new System.EventHandler(this.calendar1_HeaderChanged);
this.calendar1.CanZoomOut += new MonthCalendar.CanZoomEventHandler(this.calendar1_CanZoomOut);
this.calendar1.MonthImageRender += new MonthCalendar.MonthImageRenderEventHandler(this.calendar1_MonthImageRender);
this.calendar1.MinDateChanged += new System.EventHandler(this.calendar1_MinDateChanged);
this.calendar1.BorderChanged += new System.EventHandler(this.calendar1_BorderChanged);
this.calendar1.SelectionEnd += new System.EventHandler(this.calendar1_SelectionEnd);
this.calendar1.WeekDaysChanged += new System.EventHandler(this.calendar1_WeekDaysChanged);
this.calendar1.SelectionModeChanged += new System.EventHandler(this.calendar1_SelectionModeChanged);
this.calendar1.WeekNumberRender += new MonthCalendar.WeekNumberRenderEventHandler(this.calendar1_WeekNumberRender);
this.calendar1.WeekDayRender += new MonthCalendar.WeekDayRenderEventHandler(this.calendar1_WeekDayRender);
this.calendar1.FirstDayOfWeekChanged += new System.EventHandler(this.calendar1_FirstDayOfWeekChanged);
this.calendar1.EnableMultiSelectionMode += new System.EventHandler(this.calendar1_EnableMultiSelectionMode);
this.calendar1.CanSelectTrailingDatesChanged += new System.EventHandler(this.calendar1_CanSelectTrailingDatesChanged);
this.calendar1.MonthDayRender += new MonthCalendar.MonthDayRenderEventHandler(this.calendar1_MonthDayRender);
this.calendar1.FooterChanged += new System.EventHandler(this.calendar1_FooterChanged);
this.calendar1.YearRender += new MonthCalendar.YearRenderEventHandler(this.calendar1_YearRender);
this.calendar1.WeekNumbersBackgroundRender += new MonthCalendar.WeekNumbersBackgroundEventHandler(this.calendar1_WeekNumbersBackgroundRender);
this.calendar1.HeaderClick += new System.EventHandler(this.calendar1_HeaderClick);
this.calendar1.CanZoomIn += new MonthCalendar.CanZoomEventHandler(this.calendar1_CanZoomIn);
this.calendar1.DisableMultiSelectionMode += new System.EventHandler(this.calendar1_DisableMultiSelectionMode);
this.calendar1.FooterRender += new MonthCalendar.FooterRenverEventHandler(this.calendar1_FooterRender);
this.calendar1.WeekDayBackgroundRender += new MonthCalendar.WeekDayBackgroundEventHandler(this.calendar1_WeekDayBackgroundRender);
this.calendar1.CultureChanged += new System.EventHandler(this.calendar1_CultureChanged);
this.calendar1.MonthRender += new MonthCalendar.MonthRenderEventHandler(this.calendar1_MonthRender);
this.calendar1.MaxDateChanged += new System.EventHandler(this.calendar1_MaxDateChanged);
this.calendar1.ZoomIn += new MonthCalendar.ZoomEventHandler(this.calendar1_ZoomIn);
this.calendar1.WeekNumbersChanged += new System.EventHandler(this.calendar1_WeekNumbersChanged);
this.calendar1.HeaderRender += new MonthCalendar.HeaderRenderEventHandler(this.calendar1_HeaderRender);
//
// dateItem1
//
this.dateItem1.Background.EndColor = System.Drawing.Color.Black;
this.dateItem1.Background.Gradient = MonthCalendar.GradientStyle.Vertical;
this.dateItem1.Background.Parent = this.calendar1;
this.dateItem1.Background.StartColor = System.Drawing.Color.White;
this.dateItem1.Background.Style = MonthCalendar.EStyle.esTransparent;
this.dateItem1.Background.TransparencyEndColor = 255;
this.dateItem1.Background.TransparencyStartColor = 255;
this.dateItem1.BackgroundImage = null;
this.dateItem1.Border.BorderColor = System.Drawing.Color.White;
this.dateItem1.Border.Parent = this.calendar1;
this.dateItem1.Border.Transparency = 255;
this.dateItem1.Border.Visible = false;
this.dateItem1.Calendar = this.calendar1;
this.dateItem1.Date = new System.DateTime(2007, 6, 21, 0, 0, 0, 0);
this.dateItem1.DayAlign = System.Drawing.ContentAlignment.TopRight;
this.dateItem1.Enabled = true;
this.dateItem1.Font = new System.Drawing.Font("Tahoma", 9F);
this.dateItem1.ForeColor = System.Drawing.Color.Black;
this.dateItem1.Image = null;
this.dateItem1.ImageAlign = System.Drawing.ContentAlignment.TopLeft;
this.dateItem1.ImageIndex = 1;
this.dateItem1.Padding = new System.Windows.Forms.Padding(2);
this.dateItem1.Range = new System.DateTime(2007, 6, 21, 0, 0, 0, 0);
this.dateItem1.Reccurence = MonthCalendar.DateItemReccurence.None;
this.dateItem1.Text = "test";
this.dateItem1.TextAlign = System.Drawing.ContentAlignment.BottomLeft;
//
// MainForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(687, 331);
this.Controls.Add(this.calendar1);
this.Controls.Add(this.propertyGrid1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "MainForm";
this.Text = "test1";
this.Load += new System.EventHandler(this.MainForm_Load);
this.ResumeLayout(false);
}
private System.Windows.Forms.ImageList imageList1;
private System.Windows.Forms.PropertyGrid propertyGrid1;
private MonthCalendar.Calendar calendar1;
private MonthCalendar.DateItem dateItem1;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -