Version

DateTimeFromPoint(Point,TimeSlot) Method

Returns the DateTime at the specified point, or null if the hit test did not yield a date.
Syntax
'Declaration
 
Public Overloads Function DateTimeFromPoint( _
   ByVal point As Point, _
   ByRef timeSlot As TimeSlot _
) As Nullable(Of Date)
public Nullable<DateTime> DateTimeFromPoint( 
   Point point,
   out TimeSlot timeSlot
)

Parameters

point
The location to test, expressed in client coordinates.
timeSlot
[out] Upon return, contains a reference to the TimeSlot at the specified point, or null if the hit test did not yield a TimeSlot. Not applicable when the return from this method is null.
Remarks

When the specified point references an area of the control which is within a TimeSlot, the returned value will contain a time component, which reflects the start time of that TimeSlot. Since the time of the first TimeSlot is typically midnight, and thus indistinguishable from a date with no time component, the timeSlot parameter exists to allow the caller to differentiate between the AllDayEvent area and the TimeSlot area.

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