[]
Gets a date according to the given x-coordinate and y-coordinate.
public DateTime? DateFromPoint(int x, int y)
Public Function DateFromPoint(x As Integer, y As Integer) As Date?
Type | Name | Description |
---|---|---|
int | x | The int value that indicates the x-coordinate of the point. |
int | y | The int value that indicates the y-coordinate of the point. |
Type | Description |
---|---|
DateTime? | The Nullable<T> type to express the current date. |
This method can retrieve a date from a special point which is determined by the x and y parameters. If the given point is not contained in the DropDownCalendar view, a null value is returned.
Gets a date according to the given point.
public DateTime? DateFromPoint(Point point)
Public Function DateFromPoint(point As Point) As Date?
Type | Name | Description |
---|---|---|
Point | point | The value of the Point type. |
Type | Description |
---|---|
DateTime? | The Nullable<T> type used to express the current date. |
This method can retrieve a date from a special point. If the given point is not contained in the DropDownCalendar view, a null value is returned.