PowerTools PlusPak for Windows Forms 8.0J
ShowRokuyou プロパティ
使用例 

カレンダーの日付領域に六曜を表示するかどうかを取得または設定します。
構文
Public Property ShowRokuyou As Rokuyous
public Rokuyous ShowRokuyou {get; set;}

プロパティ値

六曜を表示する場合はtrue、表示しない場合はfalse。既定値はfalse
使用例
次のサンプルコードは、カレンダーに六曜を表示する方法を示します。
Imports GrapeCity.Win.Calendar 
 
' カレンダーに"先勝"と"大安"の日を表示します。
GcCalendar1.ShowRokuyou = Rokuyous.Senshou Or Rokuyous.Taian

' 六曜を日付領域の下部に左揃えします。
GcCalendar1.RokuyouAlignment = RokuyouAlignment.BottomLeft
 
' 六曜の大きさを日付テキストの50%に設定します。
GcCalendar1.RokuyouFontScale = 50
using GrapeCity.Win.Calendar;
 
// カレンダーに"先勝"と"大安"の日を表示します。
gcCalendar1.ShowRokuyou = Rokuyous.Senshou | Rokuyous.Taian;

// 六曜を日付領域の下部に左揃えします。
gcCalendar1.RokuyouAlignment = RokuyouAlignment.BottomLeft;

// 六曜の大きさを日付テキストの50%に設定します。
gcCalendar1.RokuyouFontScale = 50;
プラットフォーム

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

参照

GcCalendar クラス
GcCalendar メンバ

Send Feedback