Spread WPF 18
GrapeCity.Wpf.SpreadSheet.CellType.Editors Namespace / GcDateTime Class / FocusedDate Property


In This Topic
    FocusedDate Property (GcDateTime)
    In This Topic
    Gets or sets the day with focus in the drop down calendar. This is a dependency property.
    Syntax
    'Declaration
     
    <BindableAttribute(True)>
    <TypeConverterAttribute(System.ComponentModel.DateTimeConverter)>
    Public Property FocusedDate As Nullable(Of Date)
    'Usage
     
    Dim instance As GcDateTime
    Dim value As Nullable(Of Date)
     
    instance.FocusedDate = value
     
    value = instance.FocusedDate
    [Bindable(true)]
    [TypeConverter(System.ComponentModel.DateTimeConverter)]
    public Nullable<DateTime> FocusedDate {get; set;}

    Property Value

    A nullable DateTime value that represents the day with focus. The default value is a null reference (Nothing in Visual Basic).
    Remarks
    The drop down calendar focused date could be specified by assigning this property. This update occurs when drop down is opened.

    If FocusedDate is a null reference (Nothing in Visual Basic), the focused date of drop down calendar will be updated to the Value. If the Value is still a null reference (Nothing in Visual Basic), it will be updated to System.DateTime.Today.

    If FocusedDate is not a null reference (Nothing in Visual Basic), the focused date of drop down calendar will be updated to the FocusedDate.

    See Also