PowerTools InputMan for ASP.NET 8.0J
Item(DayOfWeek) プロパティ
使用例 

WeekdaysStyleオブジェクトの要素を参照します。
構文
Public ReadOnly Property Item( _
   ByVal index As DayOfWeek _
) As DayOfWeekStyle
public DayOfWeekStyle Item( 
   DayOfWeek index
) {get;}

パラメータ

index
解説
Itemプロパティは、WeekdaysStyleオブジェクトの要素を指定するときにVisual Basicで使用します。 C#では、WeekdaysStyleクラスのインデクサになります。

プロパティ
0 - DayOfWeek.Sunday Sunday
1 - DayOfWeek.Monday Monday
2 - DayOfWeek.Tuesday Tuesday
3 - DayOfWeek.Wednesday Wednesday
4 - DayOfWeek.Thursday Thursday
5 - DayOfWeek.Friday Friday
6 - DayOfWeek.Saturday Saturday
使用例
次のサンプルコードは、曜日のキャプションを設定します。
Imports GrapeCity.Web.Input.IMCalendar

Dim aWeekdaysStyle = New WeekdaysStyle

aWeekdaysStyle(0).DayName = "Sun"
aWeekdaysStyle(1).DayName = "Mon"
aWeekdaysStyle(2).DayName = "Tue"
aWeekdaysStyle(3).DayName = "Wed"
aWeekdaysStyle(4).DayName = "Thu"
aWeekdaysStyle(5).DayName = "Sat"
aWeekdaysStyle(6).DayName = "Sun"

GcCalendar1.Weekdays = aWeekdaysStyle
using GrapeCity.Web.Input.IMCalendar;

WeekdaysStyle aWeekdaysStyle = new WeekdaysStyle();

aWeekdaysStyle(0).DayName = "Sun";
aWeekdaysStyle(1).DayName = "Mon";
aWeekdaysStyle(2).DayName = "Tue";
aWeekdaysStyle(3).DayName = "Wed";
aWeekdaysStyle(4).DayName = "Thu";
aWeekdaysStyle(5).DayName = "Sat";
aWeekdaysStyle(6).DayName = "Sun";

GcCalendar1.Weekdays = aWeekdaysStyle;
参照

WeekdaysStyle クラス
WeekdaysStyle メンバ

 

 


© 2005-2015 GrapeCity inc. All rights reserved.