PowerTools MultiRow for Windows Forms 8.0J
TargetDate プロパティ (StickyCell)
使用例 

イベントの対象日を取得または設定します。
構文
Public Property TargetDate As Date
public DateTime TargetDate {get; set;}

プロパティ値

イベントの対象日を表す System.DateTime 値。既定値は System.DateTime.Today です。
使用例
次のサンプルコードは、付箋型セルの設定方法を示します。
private void SetStickyCell(StickyCell stickyCell)
{
    stickyCell.CandidateColors = new Color[] {Color.Orange, Color.Purple,Color.Red,Color.Green,Color.Blue,Color.Yellow};
    stickyCell.MarkColor = Color.Orange;
    stickyCell.ReminderTimes = 5;
    stickyCell.MarkColorChangedByDays = 3;
    stickyCell.TargetDate = DateTime.Today.AddDays(10d);
    stickyCell.Popup =  typeof(CustomPopForm);
}
Private Sub SetStickyCell(stickyCell As StickyCell)
    stickyCell.CandidateColors = New Color() {Color.Orange, Color.Purple, Color.Red, Color.Green, Color.Blue, Color.Yellow}
    stickyCell.MarkColor = Color.Orange
    stickyCell.ReminderTimes = 5
    stickyCell.MarkColorChangedByDays = 3
    stickyCell.TargetDate = DateTime.Today.AddDays(10.0)
    stickyCell.Popup = GetType(CustomPopForm)
End Sub
参照

StickyCell クラス
StickyCell メンバ
UseTargetDate プロパティ

 

 


© 2008-2015 GrapeCity inc. All rights reserved.