System.Windows.Forms.MonthCalendar.GetDisplayRange Method

Retrieves date information that represents the low and high limits of the displayed dates of the control.

Syntax

public SelectionRange GetDisplayRange (bool visible)

Parameters

visible
true to retrieve only the dates that are fully contained in displayed months; otherwise, false.

Returns

The begin and end dates of the displayed calendar.

Remarks

The MonthCalendar.GetDisplayRange(bool) method returns a MonthCalendar.SelectionRange that contains the begin and end dates displayed in the current view of the control. You can modify the returned range based on the value you specify for the visible parameter. By specifying false, you can retrieve all dates displayed on the control; specifying true retrieves only those dates that are part of fully displayed months.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0