public final class OleObjectCollection extends AbstractList<T>
Represents a collection containing the instances of the OleObject
class.
Modifier and Type | Method and Description |
---|---|
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 the
OleObjectCollection class to a list containing the instances of the OleObject class. |
add, add, addAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, set, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, spliterator, toArray, toArray
parallelStream, removeIf, stream
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;} )
clear
in interface Collection<OleObject>
clear
in interface List<OleObject>
clear
in class AbstractList<OleObject>
public OleObject get(int index)
public int size()
size
in interface Collection<OleObject>
size
in interface List<OleObject>
size
in class AbstractCollection<OleObject>
public final List<OleObject> toList()
Converts the instance of the OleObjectCollection
class to a list containing the instances of the OleObject
class.
OleObjectCollection
class containing the instances of the
OleObject
class.public void sort(Comparator<? super T> c)
c
-