GrapeCity CalendarGrid for Windows Forms 2.0J
TopLeftButtons プロパティ
使用例 

CalendarNavigationBar が横向きの場合は左側、縦向きの場合は上側に表示される CalendarNavigationButtonCalendarNavigationButtonCollection を取得します。
構文
Public ReadOnly Property TopLeftButtons As CalendarNavigationButtonCollection
public CalendarNavigationButtonCollection TopLeftButtons {get;}

プロパティ値

ナビゲーションボタンのコレクションを表す CalendarNavigationButtonCollection 値。
使用例
次のサンプルコードは、TopLeftButtons コレクションにボタンを追加する方法を示します。
private void AddBottonRightButtons()
{
    CalendarNavigationButton calendarNavigationButton1 = new CalendarNavigationButton();
    calendarNavigationButton1.ButtonBehavior = GrapeCity.Win.CalendarGrid.CalendarTitleButtonBehavior.Next;
    calendarNavigationButton1.DateFormat = "{LongDate}";
    calendarNavigationButton1.FlatAppearance.BorderColor = System.Drawing.SystemColors.ActiveCaption;
    calendarNavigationButton1.FlatAppearance.BorderSize = 2;
    calendarNavigationButton1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
    calendarNavigationButton1.Text = "";
    calendarNavigationButton1.ToolTipText = "{0}";
    this.gcCalendarGrid1.NavigationBar.BottomRightButtons.Add(calendarNavigationButton1);            
}
Private Sub AddBottonRightButtons()
    Dim calendarNavigationButton1 As New CalendarNavigationButton()
    calendarNavigationButton1.ButtonBehavior = GrapeCity.Win.CalendarGrid.CalendarTitleButtonBehavior.[Next]
    calendarNavigationButton1.DateFormat = "{LongDate}"
    calendarNavigationButton1.FlatAppearance.BorderColor = System.Drawing.SystemColors.ActiveCaption
    calendarNavigationButton1.FlatAppearance.BorderSize = 2
    calendarNavigationButton1.FlatStyle = System.Windows.Forms.FlatStyle.Flat
    calendarNavigationButton1.Text = ""
    calendarNavigationButton1.ToolTipText = "{0}"
    Me.gcCalendarGrid1.NavigationBar.BottomRightButtons.Add(calendarNavigationButton1)
End Sub
参照

CalendarNavigationBar クラス
CalendarNavigationBar メンバ

 

 


c 2008 GrapeCity inc. All rights reserved.