Visual Basic (Declaration) | |
---|---|
Public Property NavigatorOrientation As NavigatorOrientation |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As DropDownCalendar Dim value As NavigatorOrientation instance.NavigatorOrientation = value value = instance.NavigatorOrientation |
C# | |
---|---|
public NavigatorOrientation NavigatorOrientation {get; set;} |
Property Value
A NavigatorOrientation value that indicates the orientation of the navigator.The default is NavigatorOrientation.Right.
This property determines the navigator position when the ShowNavigator property is Scrollbar or Button.
This example sets the NavigatorOrientation property.
C# | Copy Code |
---|---|
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]; |
VB.NET | Copy Code |
---|---|
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) |
Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8