Version

DateTimeFromPoint(Point,TimeSlotUIElement) Method

Returns the date/time at the specified point, or null if the specified point lies within an area of the control that is not definitively associated with a date/time.
Syntax
'Declaration
 
Public Overloads Function DateTimeFromPoint( _
   ByVal point As Point, _
   ByRef timeSlotElement As TimeSlotUIElement _
) As Nullable(Of Date)
public Nullable<DateTime> DateTimeFromPoint( 
   Point point,
   out TimeSlotUIElement timeSlotElement
)

Parameters

point
The point to test, expressed in client coordinates.
timeSlotElement
[out] Upon return, contains the TimeSlotUIElement whose bounding rectangle contains the specified point, or null if the specified point does not intersect with a TimeSlotUIElement.

Return Value

A DateTime struct or null.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also