Package com.aspose.tasks
Class OleObjectCollection
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<T>
-
- com.aspose.tasks.OleObjectCollection
-
public final class OleObjectCollection extends AbstractList<T>
Represents a collection containing the instances of the
OleObject
class.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(OleObject item)
void
clear()
Clears the collection.OleObject
get(int index)
(@inheritDoc}int
size()
Returns the number of elements in this collection.void
sort(Comparator<? super T> c)
List<OleObject>
toList()
Converts the instance of theOleObjectCollection
class to a list containing the instances of theOleObject
class.-
Methods inherited from class java.util.AbstractList
add, addAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, set, subList
-
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, spliterator, toArray, toArray
-
-
-
-
Method Detail
-
add
public boolean add(OleObject item)
- Specified by:
add
in interfaceCollection<OleObject>
- Specified by:
add
in interfaceList<OleObject>
- Overrides:
add
in classAbstractList<OleObject>
- Parameters:
item
-- Returns:
-
clear
public final void clear()
Clears the collection. In order to persist these changes project.Save should be called with new MPPSaveOptions { WriteViewData = true; }
How to clear OLE objects and persist these changes.
[C#] project.OleObjects.Clear(); project.Save("output.mpp", new MPPSaveOptions {WriteViewData = true;} )
- Specified by:
clear
in interfaceCollection<OleObject>
- Specified by:
clear
in interfaceList<OleObject>
- Overrides:
clear
in classAbstractList<OleObject>
-
get
public OleObject get(int index)
(@inheritDoc}
-
size
public int size()
Returns the number of elements in this collection.- Specified by:
size
in interfaceCollection<OleObject>
- Specified by:
size
in interfaceList<OleObject>
- Specified by:
size
in classAbstractCollection<OleObject>
- Returns:
- the number of elements in this collection.
-
toList
public final List<OleObject> toList()
Converts the instance of the
OleObjectCollection
class to a list containing the instances of theOleObject
class.- Returns:
- Converted to list the instance of the
OleObjectCollection
class containing the instances of theOleObject
class.
-
sort
public void sort(Comparator<? super T> c)
- Parameters:
c
-
-
-