[]
        
(Showing Draft Content)

GrapeCity.Win.Spread.InputMan.CellType.DropDownCalendar.DateFromPoint

DateFromPoint Method

DateFromPoint(int, int)

Gets a date according to the given x-coordinate and y-coordinate.

Declaration
public DateTime? DateFromPoint(int x, int y)
Public Function DateFromPoint(x As Integer, y As Integer) As Date?
Parameters
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.

Returns
Type Description
DateTime?

The Nullable<T> type to express the current date.

Remarks

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.

DateFromPoint(Point)

Gets a date according to the given point.

Declaration
public DateTime? DateFromPoint(Point point)
Public Function DateFromPoint(point As Point) As Date?
Parameters
Type Name Description
Point point

The value of the Point type.

Returns
Type Description
DateTime?

The Nullable<T> type used to express the current date.

Remarks

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.