14 writes to CalendarDimensions
System.Windows.Forms (1)
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
1606private void ResetCalendarDimensions() => CalendarDimensions = new Size(1, 1);
System.Windows.Forms.Tests (13)
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarAccessibleObjectTests.cs (2)
348CalendarDimensions = new Size { Width = 2, Height = 2 } 390CalendarDimensions = new Size { Width = 2, Height = 2 }
System\Windows\Forms\MonthCalendarTests.cs (11)
626CalendarDimensions = value 632calendar.CalendarDimensions = value; 645CalendarDimensions = value 653calendar.CalendarDimensions = value; 673calendar.CalendarDimensions = value; 681calendar.CalendarDimensions = value; 704calendar.CalendarDimensions = value; 714calendar.CalendarDimensions = value; 730Assert.Throws<ArgumentOutOfRangeException>("x", () => calendar.CalendarDimensions = new Size(x, 1)); 739Assert.Throws<ArgumentOutOfRangeException>("y", () => calendar.CalendarDimensions = new Size(1, y)); 4676calendar.CalendarDimensions = new Size(2, 2);
18 references to CalendarDimensions
System.Windows.Forms.Tests (18)
System\Windows\Forms\MonthCalendarTests.cs (18)
41Assert.Equal(new Size(1, 1), control.CalendarDimensions); 628Assert.Equal(expected, calendar.CalendarDimensions); 633Assert.Equal(expected, calendar.CalendarDimensions); 647Assert.True(calendar.CalendarDimensions.Width is > 0 and <= 12); 648Assert.True(calendar.CalendarDimensions.Height is > 0 and <= 12); 652var previousCalendarDimensions = calendar.CalendarDimensions; 654Assert.True(calendar.CalendarDimensions.Width is > 0 and <= 12); 655Assert.True(calendar.CalendarDimensions.Height is > 0 and <= 12); 656Assert.Equal(previousCalendarDimensions, calendar.CalendarDimensions); 674Assert.Equal(expected, calendar.CalendarDimensions); 682Assert.Equal(expected, calendar.CalendarDimensions); 705Assert.True(calendar.CalendarDimensions.Width is > 0 and <= 12); 706Assert.True(calendar.CalendarDimensions.Height is > 0 and <= 12); 713var previousCalendarDimensions = calendar.CalendarDimensions; 715Assert.True(calendar.CalendarDimensions.Width is > 0 and <= 12); 716Assert.True(calendar.CalendarDimensions.Height is > 0 and <= 12); 717Assert.Equal(previousCalendarDimensions, calendar.CalendarDimensions); 4680calendar.CalendarDimensions.Should().Be(new Size(1, 1));