Spread Windows Forms 9.0 Product Documentation
Lines Property (DropDownCalendar)
Example 


Gets or sets the line setting.
Syntax
'Declaration
 
Public Property Lines As Grid
'Usage
 
Dim instance As DropDownCalendar
Dim value As Grid
 
instance.Lines = value
 
value = instance.Lines
public Grid Lines {get; set;}

Property Value

A Grid object that indicates the lines.
Remarks
This property determines the color and the style of lines shown in the DropDownCalendar.
Example
This example adds lines around the calendar.
GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType gcDateTimeCell1 = new GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType();
gcDateTimeCell1.DropDownCalendar.ItemStyle.BackColor = Color.Bisque;
gcDateTimeCell1.DropDownCalendar.Lines = new GrapeCity.Win.Spread.InputMan.CellType.Grid(new GrapeCity.Win.Spread.InputMan.CellType.Line(GrapeCity.Win.Spread.InputMan.CellType.LineStyle.Dashed, Color.Blue), new GrapeCity.Win.Spread.InputMan.CellType.Line(GrapeCity.Win.Spread.InputMan.CellType.LineStyle.Dotted, Color.Brown), new GrapeCity.Win.Spread.InputMan.CellType.Line(GrapeCity.Win.Spread.InputMan.CellType.LineStyle.Double, Color.Red), new GrapeCity.Win.Spread.InputMan.CellType.Line(GrapeCity.Win.Spread.InputMan.CellType.LineStyle.Dashed, Color.Green), new GrapeCity.Win.Spread.InputMan.CellType.Line(GrapeCity.Win.Spread.InputMan.CellType.LineStyle.Dashed, Color.Violet), new GrapeCity.Win.Spread.InputMan.CellType.Line(GrapeCity.Win.Spread.InputMan.CellType.LineStyle.Dashed, Color.Thistle), new GrapeCity.Win.Spread.InputMan.CellType.Line(GrapeCity.Win.Spread.InputMan.CellType.LineStyle.Dashed, Color.Blue), GrapeCity.Win.Spread.InputMan.CellType.VerticalFlags.HeaderOnly);
fpSpread1.Sheets[0].Cells[1, 1].CellType = gcDateTimeCell1;
Dim gcDateTimeCell1 As New GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType()
gcDateTimeCell1.DropDownCalendar.ItemStyle.BackColor = Color.Bisque
gcDateTimeCell1.DropDownCalendar.Lines = New GrapeCity.Win.Spread.InputMan.CellType.Grid(New GrapeCity.Win.Spread.InputMan.CellType.Line(GrapeCity.Win.Spread.InputMan.CellType.LineStyle.Dashed, Color.Blue), New GrapeCity.Win.Spread.InputMan.CellType.Line(GrapeCity.Win.Spread.InputMan.CellType.LineStyle.Dotted, Color.Brown), New GrapeCity.Win.Spread.InputMan.CellType.Line(GrapeCity.Win.Spread.InputMan.CellType.LineStyle.Double, Color.Red), New GrapeCity.Win.Spread.InputMan.CellType.Line(GrapeCity.Win.Spread.InputMan.CellType.LineStyle.Dashed, Color.Green), New GrapeCity.Win.Spread.InputMan.CellType.Line(GrapeCity.Win.Spread.InputMan.CellType.LineStyle.Dashed, Color.Violet), New GrapeCity.Win.Spread.InputMan.CellType.Line(GrapeCity.Win.Spread.InputMan.CellType.LineStyle.Dashed, Color.Thistle), New GrapeCity.Win.Spread.InputMan.CellType.Line(GrapeCity.Win.Spread.InputMan.CellType.LineStyle.Dashed, Color.Blue), GrapeCity.Win.Spread.InputMan.CellType.VerticalFlags.HeaderOnly)
FpSpread1.Sheets(0).Cells(1, 1).CellType = gcDateTimeCell1
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

DropDownCalendar Class
DropDownCalendar Members

 

 


Copyright © GrapeCity, inc. All rights reserved.