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
OleObjectclass.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Clears the collection.OleObjectget(int index)(@inheritDoc}intsize()Returns the number of elements in this collection.voidsort(Comparator<? super T> c)List<OleObject>toList()Converts the instance of theOleObjectCollectionclass to a list containing the instances of theOleObjectclass.-
Methods inherited from class java.util.AbstractList
add, 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
-
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:
clearin interfaceCollection<OleObject>- Specified by:
clearin interfaceList<OleObject>- Overrides:
clearin classAbstractList<OleObject>
-
get
public OleObject get(int index)
(@inheritDoc}
-
size
public int size()
Returns the number of elements in this collection.- Specified by:
sizein interfaceCollection<OleObject>- Specified by:
sizein interfaceList<OleObject>- Specified by:
sizein classAbstractCollection<OleObject>- Returns:
- the number of elements in this collection.
-
toList
public final List<OleObject> toList()
Converts the instance of the
OleObjectCollectionclass to a list containing the instances of theOleObjectclass.- Returns:
- Converted to list the instance of the
OleObjectCollectionclass containing the instances of theOleObjectclass.
-
sort
public void sort(Comparator<? super T> c)
- Parameters:
c-
-
-