Class CalendarCollection
Namespace: Aspose.Tasks
Assembly: Aspose.Tasks.dll (25.2.0)
Aspose.Tasks.Calendarオブジェクトのコレクションを表します。
public class CalendarCollection : IList<calendar>, ICollection<calendar>, IEnumerable<calendar>, IEnumerable
継承
実装
IList<calendar>, ICollection<calendar>, IEnumerable<calendar>, IEnumerable
継承メンバー
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
プロパティ
Count
このAspose.Tasks.CalendarCollectionオブジェクトに含まれるオブジェクトの数を取得します。
public int Count { get; }
プロパティ値
メソッド
Add(string)
このCalendarCollectionオブジェクトに新しいベースカレンダーを追加し、追加されたカレンダーを返します。
public Calendar Add(string name)
パラメーター
name
string
カレンダー名。
戻り値
追加されたAspose.Tasks.Calendarオブジェクト。
例外
カレンダー名がnullの場合にスローされます。
Add(string, Calendar)
指定されたベースカレンダーを持つ新しいカレンダーをこのCalendarCollectionオブジェクトに追加し、追加されたカレンダーを返します。
public Calendar Add(string name, Calendar baseCalendar)
パラメーター
name
string
指定された名前。
baseCalendar
Calendar
指定されたベースカレンダー。
戻り値
追加されたAspose.Tasks.Calendarオブジェクト。
GetByName(string)
指定された名前のカレンダーを返します。
public Calendar GetByName(string name)
パラメーター
name
string
カレンダーの名前。
戻り値
見つかった場合は指定された名前のカレンダーを返し、見つからない場合はnullを返します。
GetByUid(int)
指定されたUIDのカレンダーを返します。
public Calendar GetByUid(int uid)
パラメーター
uid
int
カレンダーのUID。
戻り値
指定されたUIDのカレンダー。
GetEnumerator()
このコレクションの列挙子を返します。
public IEnumerator<calendar> GetEnumerator()
戻り値
IEnumerator<Calendar>
このコレクションの列挙子。
Remove(Calendar)
プロジェクトのCalendarCollectionからカレンダーを削除します。
public bool Remove(Calendar item)
パラメーター
item
Calendar
削除するカレンダー。
戻り値
削除された場合はtrueを返し、そうでない場合はfalseを返します。
例外
カレンダーを削除できない場合にスローされます。
ToList()
CalendarCollectionオブジェクトをAspose.Tasks.Calendarオブジェクトのリストに変換します。
public List<calendar> ToList()
戻り値
Aspose.Tasks.Calendarオブジェクトのリスト。