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


GrapeCity.Win.PluginInputMan Assembly > GrapeCity.Win.Spread.InputMan.CellType Namespace > DropDownCalendar Class : SingleBorderColor Property
Gets or sets the color for a single line border.
Syntax
'Declaration
 
Public Property SingleBorderColor As Color
'Usage
 
Dim instance As DropDownCalendar
Dim value As Color
 
instance.SingleBorderColor = value
 
value = instance.SingleBorderColor
public Color SingleBorderColor {get; set;}

Property Value

The default value is the System.Drawing.SystemColors.WindowFrame.
Exceptions
ExceptionDescription
The value is not valid.
Remarks
The color only takes effect when BorderStyle is FixedSingle. This property is from feature 0054 of V3.0 (Control border color)
Example
This example sets the SingleBorderColor property.
GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType gcDateTimeCell1 = new GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType();
gcDateTimeCell1.DropDownCalendar.BorderStyle = BorderStyle.FixedSingle;
gcDateTimeCell1.DropDownCalendar.SingleBorderColor = Color.DarkViolet;
fpSpread1.Sheets[0].Cells[1, 1].CellType = gcDateTimeCell1;
Dim gcDateTimeCell1 As New GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType()
gcDateTimeCell1.DropDownCalendar.BorderStyle = BorderStyle.FixedSingle
gcDateTimeCell1.DropDownCalendar.SingleBorderColor = Color.DarkViolet
fpSpread1.Sheets(0).Cells(1, 1).CellType = gcDateTimeCell1
See Also

Reference

DropDownCalendar Class
DropDownCalendar Members