HeaderPane
Main
Hide
Share Link
Print

DisplayStart Property, SftCalendar Class

Defines the first period shown.

Class: SftCalendar
Namespace: Softelvdm.SftDateNET
Assembly: Softelvdm.SftDateNET

Syntax

public DateTime DisplayStart { get; set; }
Public Property DisplayStart As DateTime

Value

The first day of the first month (or year, decade, century) shown.

Comments

Defines the first period shown.

Examples

C# View entire sample code

            DumpValues("sftCalendar1.DateActivated", e);
        }

        private void sftCalendar1_ViewChanged(object sender, EventArgs e) {
            DumpValues("sftCalendar1.ViewChanged (" + sftCalendar1.View + ")", e);
        }

        private void sftCalendar1_DisplayChanged(object sender, EventArgs e) {
            DumpValues("sftCalendar1.DisplayChanged (" + sftCalendar1.DisplayStart.ToShortDateString() + ")", e);
        }

        private void sftCalendar1_TodayClicked(object sender, EventArgs e) {
            DumpValues("sftCalendar1.TodayClicked", e);
        }

        private void sftCalendar1_ClearClicked(object sender, EventArgs e) {

VB.NET View entire sample code

        DumpValues("SftCalendar1.DateActivated", e)
    End Sub

    Private Sub SftCalendar1_ViewChanged(ByVal sender As Object, ByVal e As EventArgs) Handles SftCalendar1.ViewChanged
        DumpValues("SftCalendar1.ViewChanged (" + SftCalendar1.View.ToString() + ")", e)
    End Sub

    Private Sub SftCalendar1_DisplayChanged(ByVal sender As Object, ByVal e As EventArgs) Handles SftCalendar1.DisplayChanged
        DumpValues("SftCalendar1.DisplayChanged (" + SftCalendar1.DisplayStart.ToShortDateString() + ")", e)
    End Sub

    Private Sub SftCalendar1_TodayClicked(ByVal sender As Object, ByVal e As EventArgs) Handles SftCalendar1.TodayClicked
        DumpValues("SftCalendar1.TodayClicked", e)
    End Sub

    Private Sub SftCalendar1_ClearClicked(ByVal sender As Object, ByVal e As EventArgs) Handles SftCalendar1.ClearClicked

See Also SftCalendar Class | Classes | SftDate/NET 3.0