Modifier and Type | Method and Description |
---|---|
Calendar |
add(String name)
Adds a new base calendar to this CalendarCollection object and returns added calendar.
|
Calendar |
add(String name,
Calendar baseCalendar)
Adds a new calendar with specified base calendar to this CalendarCollection object and returns added calendar.
|
Calendar |
getByName(String name)
Returns a calendar with the specified name.
|
Calendar |
getByUid(int uid)
Returns a calendar with the specified Uid.
|
int |
getCount()
Returns the number of objects contained in this
CalendarCollection object. |
Project |
getParentProject()
Returns a parent
Project of this object. |
Iterator<Calendar> |
iterator() |
void |
remove(Calendar calendar)
Removes Calendar from Project CalendarCollection.
|
List<Calendar> |
toList()
Converts the CalendarCollection object to a list of
Calendar objects. |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public Project getParentProject()
Returns a parent Project
of this object.
Read only Project
.
public int getCount()
Returns the number of objects contained in this CalendarCollection
object.
Read only int
.
public Calendar add(String name)
Adds a new base calendar to this CalendarCollection object and returns added calendar.
name
- Calendar name.Calendar
object.com.aspose.ms.System.ArgumentException
- is thrown if calendar name is null or empty.public Calendar add(String name, Calendar baseCalendar)
Adds a new calendar with specified base calendar to this CalendarCollection object and returns added calendar.
name
- Specified name.baseCalendar
- Specified base calendar.Calendar
object.public List<Calendar> toList()
Converts the CalendarCollection object to a list of Calendar
objects.
Calendar
objects.public Calendar getByUid(int uid)
Returns a calendar with the specified Uid.
uid
- Uid of a calendar.public Calendar getByName(String name)
Returns a calendar with the specified name.
name
- the specified name of a calendar.public void remove(Calendar calendar)
Removes Calendar from Project CalendarCollection.
calendar
- Calendar
instance to remove.com.aspose.ms.System.InvalidOperationException
- is thrown when trying to remove standard calendar.Copyright (c) 2008-2015 Aspose Pty Ltd. All Rights Reserved.