ComponentOne Scheduler for WinForms
GetDateTimeAtPoint Method

C1.Win.C1Schedule.4 Assembly > C1.Win.C1Schedule Namespace > C1Schedule Class : GetDateTimeAtPoint Method
The System.Drawing.Point value in screen coordinates.
Returns the System.DateTime value which is located in the Schedule at the given screen point.
Syntax
'Declaration
 
Public Function GetDateTimeAtPoint( _
   ByVal location As System.Drawing.Point _
) As System.Date
public System.DateTime GetDateTimeAtPoint( 
   System.Drawing.Point location
)

Parameters

location
The System.Drawing.Point value in screen coordinates.

Return Value

The System.DateTime value at given point if it's a point inside of scheduled area; the value of CurrentDate property in other case.
See Also

Reference

C1Schedule Class
C1Schedule Members