[]
        
(Showing Draft Content)

GrapeCity.Win.Spread.InputMan.CellType.HolidayCollection

HolidayCollection クラス

休日コレクションマネージャによってサポートされるHoliday、ForceHoliday、およびForceWorkdayクラスのインスタンスのコレクションを表します。

継承
HolidayCollection
名前空間: GrapeCity.Win.Spread.InputMan.CellType
アセンブリ: GrapeCity.Win.PluginInputMan.dll
構文
[TypeConverter(typeof(HolidayCollectionConverter))]
public class HolidayCollection : NotifyCollection, IList, ICollection, IEnumerable
<TypeConverter(GetType(HolidayCollectionConverter))>
Public Class HolidayCollection
    Inherits NotifyCollection
    Implements IList, ICollection, IEnumerable

コンストラクター

名前 説明
HolidayCollection()

新しいHolidayCollectionオブジェクトを初期化します。

HolidayCollection(IHoliday[], Weekdays)

指定した設定を使用して、新しいHolidayCollectionオブジェクトを初期化します(外部での使用は推奨されません)。

HolidayCollection(Weekdays)

新しいHolidayCollectionオブジェクトを初期化します。

プロパティ

名前 説明
this[int]

インデックスによって指定した IHoliday を取得します。

Weekdays

休業日設定の対象となる曜日を指定するWeekdays オブジェクトを取得または設定します。

メソッド

名前 説明
Add(IHoliday)

コレクションに項目を追加します。

AddRange(IHoliday[])

指定した IHoliday 配列の要素をコレクションの最後にコピーします

Contains(IHoliday)

指定したIMEが開かれているかどうかを示す値を返します。

CopyTo(IHoliday[], int)

HolidayCollection の項目を、IHoliday 型の互換性のある1次元配列の指定した0から始まるインデックス以降にコピーします。

GetTypeOfDay(DateTime, out object)

指定した日付に対応する項目を取得し、更に休日の種類を返します。

IndexOf(IHoliday)

指定した IHoliday を検索し、コレクション内で最初に見つかった一致する項目の0から始まるインデックスを返します。

Insert(int, IHoliday)

コレクションに休日オブジェクトを挿入します。

IsHoliday(DateTime)

指定の日付がオブジェクトに関連付けられているかどうかを返します。

IsOverridden(DateTime)

指定の日付が振替休日か、そうでないかを返します。

OnClear()

HolidayCollection インスタンスの内容をクリアした後で、追加のカスタム処理を実行します。

OnInsertComplete(int, object)

HolidayCollection インスタンスに新しい要素を挿入した後で、追加のカスタム処理を実行します。

OnRemoveComplete(int, object)

HolidayCollection インスタンスから要素を削除した後で、追加のカスタム処理を実行します。

Remove(IHoliday)

指定した IHoliday を HolidayCollection 内で検索し、最初に見つかった一致する項目を削除します。