[]
        
(Showing Draft Content)

GrapeCity.Win.Spread.InputMan.CellType.DropDownCalendar.DayOfWeekFromPoint

DayOfWeekFromPoint Method

DayOfWeekFromPoint(int, int)

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

Declaration
public DayOfWeek DayOfWeekFromPoint(int x, int y)
Public Function DayOfWeekFromPoint(x As Integer, y As Integer) As DayOfWeek
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
DayOfWeek

The DayOfWeek used to express the current weekday.

Remarks

This method can retrieve a weekday 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.

DayOfWeekFromPoint(Point)

Gets the weekday from a point.

Declaration
public DayOfWeek DayOfWeekFromPoint(Point point)
Public Function DayOfWeekFromPoint(point As Point) As DayOfWeek
Parameters
Type Name Description
Point point

The value of the point type.

Returns
Type Description
DayOfWeek

The DayOfWeekType used to express the current weekday.

Remarks

This method can retrieve a weekday from a special point. If the given point is not contained in the DropDownCalendar view, a null value is returned.