Spread Windows Forms 7.0 Product Documentation
DateFromPoint(Int32,Int32) Method
See Also  Support Options
GrapeCity.Win.PluginInputMan Assembly > GrapeCity.Win.Spread.InputMan.CellType Namespace > DropDownCalendar Class > DateFromPoint Method : DateFromPoint(Int32,Int32) Method


x
The System.Int32 value that indicates the x-coordinate of the point.
y
The System.Int32 value that indicates the y-coordinate of the point.

Glossary Item Box

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

Syntax

Visual Basic (Declaration) 
Public Overloads Function DateFromPoint( _
   ByVal x As Integer, _
   ByVal y As Integer _
) As Nullable(Of Date)
Visual Basic (Usage)Copy Code
Dim instance As DropDownCalendar
Dim x As Integer
Dim y As Integer
Dim value As Nullable(Of Date)
 
value = instance.DateFromPoint(x, y)
C# 
public Nullable<DateTime> DateFromPoint( 
   int x,
   int y
)

Parameters

x
The System.Int32 value that indicates the x-coordinate of the point.
y
The System.Int32 value that indicates the y-coordinate of the point.

Return Value

The Nullable type to express the current date.

Remarks

This method can retrieve a date 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 a null reference (Nothing in Visual Basic) value is returned.

Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.