2 writes to Start
System.Windows.Forms (2)
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarAccessibleObject.cs (1)
90dateRange.Start = displayRange.Start;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
1259Start = (DateTime)times[0],
57 references to Start
System.Windows.Forms (29)
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarAccessibleObject.cs (3)
88if (_calendarIndex == 0 && displayRange.Start < dateRange.Start) 90dateRange.Start = displayRange.Start;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarCellAccessibleObject.cs (8)
78DateTime cellDate = DateRange.Start; 169MONTH_CALDENDAR_MESSAGES_VIEW.MCMV_MONTH => $"{DateRange.Start:D}", 170MONTH_CALDENDAR_MESSAGES_VIEW.MCMV_YEAR => $"{DateRange.Start:Y}", 171MONTH_CALDENDAR_MESSAGES_VIEW.MCMV_DECADE => $"{DateRange.Start:yyy}", 172MONTH_CALDENDAR_MESSAGES_VIEW.MCMV_CENTURY => $"{DateRange.Start:yyy} - {DateRange.End:yyy}", 192_monthCalendarAccessibleObject.SetSelectionRange(DateRange.Start, DateRange.End); 212&& DateRange.Start >= _monthCalendarAccessibleObject.SelectionRange.Start
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarPreviousButtonAccessibleObject.cs (1)
63&& _monthCalendarAccessibleObject.MinDate < displayRange.Start;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarRowAccessibleObject.cs (2)
134string weekNumber = GetWeekNumber(cell.DateRange.Start); 224_rowIndex, -1, GetWeekNumber(CellsAccessibleObjects.First.Value.DateRange.Start));
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (7)
342DateTime currentDate = displayRange.Start; 355int currentMonthIndex = GetIndexInMonths(displayRange.Start, currentDate); 713set => SetSelectionRange(value.Start, value.End); 1089DateTime start = range.Start; 1270=> GetIndexInMonths(displayRange.Start, displayRange.End) + 1; 1986if (_currentDisplayRange.Start != newRange.Start || _currentDisplayRange.End != newRange.End)
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.MonthCalendarAccessibleObject.cs (6)
334DateTime calendarStart = calendar.DateRange.Start; 364if (date >= cellRange.Start && date <= cellRange.End) 581return DateTime.Equals(range.Start.Date, range.End.Date) 582? $"{range.Start:D}" 583: $"{range.Start:D} - {range.End:D}"; 608return $"{range.Start:yyyy} - {range.End:yyyy}";
System\Windows\Forms\Controls\MonthCalendar\SelectionRangeConverter.cs (2)
117return range.Start; 128return new InstanceDescriptor(ctor, new object[] { range.Start, range.End });
System.Windows.Forms.Tests (26)
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarAccessibleObjectTests.cs (1)
154Assert.Equal(expected.Start, calendar.DateRange.Start);
System\Windows\Forms\AccessibleObjects\MonthCalendar.MonthCalendarAccessibleObjectTests.cs (4)
202Assert.Equal(expected.Start, actual.Start); 378actual.Start.Should().Be(expected.Start);
System\Windows\Forms\MonthCalendar.SelectionRangeConverterTests.cs (4)
59range.Start.Should().Be(DateTime.Parse(expectedStart)); 69range.Start.Should().Be(value); 108result.Start.Should().Be(new DateTime(2022, 1, 1)); 140range.Start.Should().Be(startTime);
System\Windows\Forms\MonthCalendarTests.cs (17)
115Assert.Equal(DateTime.Now.Date, control.SelectionRange.Start); 2140Assert.Equal(expectedSelectionStart, calendar.SelectionRange.Start); 2149Assert.Equal(expectedSelectionStart, calendar.SelectionRange.Start); 2171Assert.Equal(expectedSelectionStart, calendar.SelectionRange.Start); 2183Assert.Equal(expectedSelectionStart, calendar.SelectionRange.Start); 3968Assert.Equal(date.Date, calendar.SelectionRange.Start); 3976Assert.Equal(date.Date, calendar.SelectionRange.Start); 3997Assert.Equal(date.Date, calendar.SelectionRange.Start); 4008Assert.Equal(date.Date, calendar.SelectionRange.Start); 4075Assert.Equal(expectedSelectionStart.Date, calendar.SelectionRange.Start); 4083Assert.Equal(expectedSelectionStart.Date, calendar.SelectionRange.Start); 4104Assert.Equal(expectedSelectionStart.Date, calendar.SelectionRange.Start); 4115Assert.Equal(expectedSelectionStart.Date, calendar.SelectionRange.Start); 4198Assert.Equal(new DateTime(2021, 8, 29), displayRange.Start); 4202int currentMonthIndex = (currentDate.Year - displayRange.Start.Year) * MonthsInYear + currentDate.Month - displayRange.Start.Month; 4253copiedRange.Start.Should().Be(startDate);
System.Windows.Forms.UI.IntegrationTests (2)
MonthCalendarTests.cs (2)
137Assert.Equal(new DateTime(givenYear, givenMonth, 1), calendar.GetDisplayRange(visible: true).Start); 157Assert.Equal(expectedDate, calendar.GetDisplayRange(visible: true).Start);