Spread Windows Forms 13.0 Product Documentation
GrapeCity.Win.PluginInputMan Assembly / GrapeCity.Win.Spread.InputMan.CellType Namespace / CalendarNavigators Enumeration
Example Example


In This Topic
    CalendarNavigators Enumeration
    In This Topic
    Specifies which type of navigator bar is shown in the control.
    Syntax
    'Declaration
     
    Public Enum CalendarNavigators 
       Inherits System.Enum
    'Usage
     
    Dim instance As CalendarNavigators
    public enum CalendarNavigators : System.Enum 
    Members
    MemberDescription
    ButtonsSpecifies that the button style navigator bar is shown.
    NoneSpecifies that no navigator bar is shown.
    OutlookSpecifies that the outlook style navigator bar is shown.
    ScrollBarSpecifies that the scroll bar style navigator bar is shown.
    Example
    This example uses the CalendarNavigators enumeration.
    GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType datecell = new GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType();
    fpSpread1.Sheets[0].Cells[0, 0].CellType = datecell;
    datecell.DropDownCalendar.AllowSelection = GrapeCity.Win.Spread.InputMan.CellType.AllowSelection.Anyday;
    datecell.DropDownCalendar.EmptyRows = GrapeCity.Win.Spread.InputMan.CellType.EmptyRows.AllAtEnd;
    datecell.DropDownCalendar.FirstDayOfWeek = GrapeCity.Win.Spread.InputMan.CellType.DayOfWeek.Friday;
    datecell.DropDownCalendar.FlatStyle = FlatStyle.Popup;
    datecell.DropDownCalendar.HeaderStyle = new GrapeCity.Win.Spread.InputMan.CellType.Style(Color.Crimson, Color.Black);
    datecell.DropDownCalendar.NavigatorOrientation = GrapeCity.Win.Spread.InputMan.CellType.NavigatorOrientation.Bottom;
    datecell.DropDownCalendar.ShowNavigator = GrapeCity.Win.Spread.InputMan.CellType.CalendarNavigators.ScrollBar;
    datecell.DefaultActiveField = datecell.Fields[2];
    Dim datecell As New GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType()
    fpSpread1.Sheets(0).Cells(0, 0).CellType = datecell
    datecell.DropDownCalendar.AllowSelection = GrapeCity.Win.Spread.InputMan.CellType.AllowSelection.Anyday
    datecell.DropDownCalendar.EmptyRows = GrapeCity.Win.Spread.InputMan.CellType.EmptyRows.AllAtEnd
    datecell.DropDownCalendar.FirstDayOfWeek = GrapeCity.Win.Spread.InputMan.CellType.DayOfWeek.Friday
    datecell.DropDownCalendar.FlatStyle = FlatStyle.Popup
    datecell.DropDownCalendar.HeaderStyle = New GrapeCity.Win.Spread.InputMan.CellType.Style(Color.Crimson, Color.Black)
    datecell.DropDownCalendar.NavigatorOrientation = GrapeCity.Win.Spread.InputMan.CellType.NavigatorOrientation.Bottom
    datecell.DropDownCalendar.ShowNavigator = GrapeCity.Win.Spread.InputMan.CellType.CalendarNavigators.ScrollBar
    datecell.DefaultActiveField = datecell.Fields(2)
    Inheritance Hierarchy

    System.Object
       System.ValueType
          System.Enum
             GrapeCity.Win.Spread.InputMan.CellType.CalendarNavigators

    See Also