GrapeCity CalendarGrid for Windows Forms 2.0J
罫線

CalendarGridのセルでは、上下左右の四辺にそれぞれ異なる罫線を指定できます。

Imports GrapeCity.Win.CalendarGrid

Dim today As DateTime = DateTime.Today

GcCalendarGrid1.Content(today).Rows(1).Cells(0).Value = "Hello world"
GcCalendarGrid1.Content(today).Rows(1).Cells(0).CellStyle.TopBorder = New CalendarBorderLine(Color.Red, BorderLineStyle.DashDot)
GcCalendarGrid1.Content(today).Rows(1).Cells(0).CellStyle.BottomBorder = New CalendarBorderLine(Color.Red, BorderLineStyle.DashDot)
GcCalendarGrid1.Content(today).Rows(1).Cells(0).CellStyle.LeftBorder = New CalendarBorderLine(Color.Blue, BorderLineStyle.Thin)
GcCalendarGrid1.Content(today).Rows(1).Cells(0).CellStyle.RightBorder = New CalendarBorderLine(Color.Blue, BorderLineStyle.Thin)
GcCalendarGrid1.ScrollIntoView(today)
using GrapeCity.Win.CalendarGrid;

var today = DateTime.Today;

gcCalendarGrid1.Content[today].Rows[1].Cells[0].Value = "Hello world";
gcCalendarGrid1.Content[today].Rows[1].Cells[0].CellStyle.TopBorder = new CalendarBorderLine(Color.Red, BorderLineStyle.DashDot);
gcCalendarGrid1.Content[today].Rows[1].Cells[0].CellStyle.BottomBorder = new CalendarBorderLine(Color.Red, BorderLineStyle.DashDot);
gcCalendarGrid1.Content[today].Rows[1].Cells[0].CellStyle.LeftBorder = new CalendarBorderLine(Color.Blue, BorderLineStyle.Thin);
gcCalendarGrid1.Content[today].Rows[1].Cells[0].CellStyle.RightBorder = new CalendarBorderLine(Color.Blue, BorderLineStyle.Thin);
gcCalendarGrid1.ScrollIntoView(today);

結果は次のようになります。


参照

 

 


© 2008 GrapeCity inc. All rights reserved.