PowerTools CalendarGrid for Windows Forms 1.0J
リンク文字列を表示する

LinkLabel型セルでは、リンク文字列はCalendarLinkLabelCellType.Textプロパティに設定します。セルの値(CalendarCell.Value)にはリンクの訪問済み、未訪問を示すBoolean型の値を格納します。

Imports GrapeCity.Win.CalendarGrid

Dim today As DateTime = DateTime.Today
Dim linkLabelCellType As New CalendarLinkLabelCellType()
linkLabelCellType.Text = "Webページを表示"

GcCalendarGrid1.Content(today).Rows(1).Cells(0).CellType = linkLabelCellType.Clone()
GcCalendarGrid1.Content(today).Rows(1).Cells(0).Value = False
GcCalendarGrid1.ScrollIntoView(today)
using GrapeCity.Win.CalendarGrid;

var today = DateTime.Today;
var linkLabelCellType = new CalendarLinkLabelCellType();
linkLabelCellType.Text = "Webページを表示";

gcCalendarGrid1.Content[today].Rows[1].Cells[0].CellType = linkLabelCellType.Clone();
gcCalendarGrid1.Content[today].Rows[1].Cells[0].Value = false;
gcCalendarGrid1.ScrollIntoView(today);
参照

 

 


© 2014 GrapeCity inc. All rights reserved.