Version

DateTimeFromPoint(Point,ColumnHeaderUIElement) 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 columnHeaderElement As ColumnHeaderUIElement _
) As Nullable(Of Date)
public Nullable<DateTime> DateTimeFromPoint( 
   Point point,
   out ColumnHeaderUIElement columnHeaderElement
)

Parameters

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

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