GrapeCity CalendarGrid for Windows Forms 2.0J
CalendarTitleCaption クラス
メンバ  使用例 

GcCalendarGrid の日付時刻情報を表示できるカレンダータイトルキャプションクラスを表します。
構文
Public Class CalendarTitleCaption 
   Inherits CalendarTitleComponent
public class CalendarTitleCaption : CalendarTitleComponent 
使用例
次のサンプルコードは、CalendarTitleCaption の作成方法を示します。
private void AddCaption()
{
    CalendarTitleCaption titleCaption = new CalendarTitleCaption();
    titleCaption.DateFormat = "yyyy年M月 (ggge年)";
    titleCaption.DateFormatType = GrapeCity.Win.CalendarGrid.CalendarDateFormatType.InputMan;
    titleCaption.Name = "calendarTitleCaption2";
    titleCaption.Text = "{0}";
    titleCaption.HorizontalAlignment = CalendarHorizontalAlignment.Center;

    this.gcCalendarGrid1.TitleHeader.Children.Add(titleCaption);
}
Private Sub AddCaption()
    Dim titleCaption As New CalendarTitleCaption()
    titleCaption.DateFormat = "yyyy年M月 (ggge年)"
    titleCaption.DateFormatType = GrapeCity.Win.CalendarGrid.CalendarDateFormatType.InputMan
    titleCaption.Name = "calendarTitleCaption2"
    titleCaption.Text = "{0}"
    titleCaption.HorizontalAlignment = CalendarHorizontalAlignment.Center

    Me.gcCalendarGrid1.TitleHeader.Children.Add(titleCaption)
End Sub
継承階層

System.Object
   System.MarshalByRefObject
      System.ComponentModel.Component
         GrapeCity.Win.CalendarGrid.CalendarTitleComponent
            GrapeCity.Win.CalendarGrid.CalendarTitleCaption

参照

CalendarTitleCaption メンバ
GrapeCity.Win.CalendarGrid 名前空間

 

 


c 2008 GrapeCity inc. All rights reserved.