MasterSlideCollection
MasterSlideCollection class
Represents a collection of master slides.
addClone
Name | Description |
---|---|
addClone (MasterSlide) | Adds a copy of a specified master slide to the end of the collection. Linked layout slides will be copied too. |
Parameters:
Name | Type | Description |
---|---|---|
sourceMaster | MasterSlide | Slide to clone. |
Returns: MasterSlide
getSyncRoot
Name | Description |
---|---|
getSyncRoot () | Returns a synchronization root. Read-only Object. |
Returns: Object
get_Item
Name | Description |
---|---|
get_Item (int) | Gets the element at the specified index. Read-only MasterSlide. |
Returns: MasterSlide
insertClone
Name | Description |
---|---|
insertClone (int, MasterSlide) | Inserts a copy of a specified master slide to specified position of the collection. Linked layout slides will be copied too. |
Parameters:
Name | Type | Description |
---|---|---|
index | int | Index of new slide. |
sourceMaster | MasterSlide | Slide to clone. |
Returns: MasterSlide
isSynchronized
Name | Description |
---|---|
isSynchronized () | Returns a value indicating whether access to the collection is synchronized (thread-safe). Read-only boolean. |
Returns: boolean
iterator
Name | Description |
---|---|
iterator () | Returns an enumerator that iterates through the collection. |
Returns:
iteratorJava
Name | Description |
---|---|
iteratorJava () | Returns a java iterator for the entire collection. |
Returns:
remove
Name | Description |
---|---|
remove (MasterSlide) | Removes the first occurrence of a specific object from the collection. |
Parameters:
Name | Type | Description |
---|---|---|
value | MasterSlide | The master slide to remove from the collection. |
Returns: void
removeAt
Name | Description |
---|---|
removeAt (int) | Removes the element at the specified index of the collection. |
Parameters:
Name | Type | Description |
---|---|---|
index | int | The zero-based index of the element to remove. To avoid throwing of the PptxEditException check master’s HasDependingSlides property before. |
Returns: void
Exception
Error | Condition |
---|---|
PptxEditException | Thrown if the master to remove is used in presentation (its HasDependingSlides property is true). |
removeUnused
Name | Description |
---|---|
removeUnused (boolean) | Removes unused master slides. |
Parameters:
Name | Type | Description |
---|---|---|
ignorePreserveField | boolean | Determines, whether this method should remove unused master even if its MasterSlide#getPreserve/ MasterSlide#setPreserve(boolean) property is set to true. |
Returns: void
size
Name | Description |
---|---|
size () | Gets the number of elements actually contained in the collection. Read-only int. |
Returns: int