Spread Windows Forms 12.0 Product Documentation
SelectionStyle Property (DropDownCalendar)
Example 


GrapeCity.Win.PluginInputMan Assembly > GrapeCity.Win.Spread.InputMan.CellType Namespace > DropDownCalendar Class : SelectionStyle Property
Gets or sets the style of selected dates.
Syntax
'Declaration
 
Public Property SelectionStyle As SubStyle
'Usage
 
Dim instance As DropDownCalendar
Dim value As SubStyle
 
instance.SelectionStyle = value
 
value = instance.SelectionStyle
public SubStyle SelectionStyle {get; set;}

Property Value

A SubStyle value that indicates the selection style.
Remarks
This property rertrieves the display style of the selected date or month cell.
Example
This example sets the selection style.
GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType gcDateTimeCell1 = new GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType();
gcDateTimeCell1.DropDownCalendar.SelectionStyle = new GrapeCity.Win.Spread.InputMan.CellType.SubStyle(Color.Azure, Color.DarkGreen, true, false);
gcDateTimeCell1.DropDownCalendar.AllowSelection = GrapeCity.Win.Spread.InputMan.CellType.AllowSelection.Anyday;
fpSpread1.Sheets[0].Cells[1, 1].CellType = gcDateTimeCell1;
Dim gcDateTimeCell1 As New GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType()
gcDateTimeCell1.DropDownCalendar.SelectionStyle = New GrapeCity.Win.Spread.InputMan.CellType.SubStyle(Color.Azure, Color.DarkGreen, True, False)
gcDateTimeCell1.DropDownCalendar.AllowSelection = GrapeCity.Win.Spread.InputMan.CellType.AllowSelection.Anyday
fpSpread1.Sheets(0).Cells(1, 1).CellType = gcDateTimeCell1
See Also

Reference

DropDownCalendar Class
DropDownCalendar Members