IMasterSlideCollection
All Implemented Interfaces: com.aspose.slides.IGenericCollection
public interface IMasterSlideCollection extends IGenericCollection<IMasterSlide>
Represents a collection of master slides.
Methods
Method | Description |
---|---|
get_Item(int index) | Gets the element at the specified index. |
remove(IMasterSlide value) | Removes the first occurrence of a specific object from the collection. |
removeAt(int index) | Removes the element at the specified index of the collection. |
removeUnused(boolean ignorePreserveField) | Removes unused master slides. |
addClone(IMasterSlide sourceMaster) | Adds a copy of a specified master slide to the end of the collection. |
insertClone(int index, IMasterSlide sourceMaster) | Inserts a copy of a specified master slide to specified position of the collection. |
get_Item(int index)
public abstract IMasterSlide get_Item(int index)
Gets the element at the specified index. Read-only IMasterSlide.
Parameters:
Parameter | Type | Description |
---|---|---|
index | int |
Returns: IMasterSlide
remove(IMasterSlide value)
public abstract void remove(IMasterSlide value)
Removes the first occurrence of a specific object from the collection.
Parameters:
Parameter | Type | Description |
---|---|---|
value | IMasterSlide | The master slide to remove from the collection. |
removeAt(int index)
public abstract void removeAt(int index)
Removes the element at the specified index of the collection.
Parameters:
Parameter | Type | Description |
---|---|---|
index | int | The zero-based index of the element to remove. |
removeUnused(boolean ignorePreserveField)
public abstract void removeUnused(boolean ignorePreserveField)
Removes unused master slides.
Parameters:
Parameter | Type | Description |
---|---|---|
ignorePreserveField | boolean | Determines, whether this method should remove unused master even if its IMasterSlide.getPreserve/IMasterSlide.setPreserve(boolean) property is set to true. |
addClone(IMasterSlide sourceMaster)
public abstract IMasterSlide addClone(IMasterSlide sourceMaster)
Adds a copy of a specified master slide to the end of the collection. Linked layout slides will be copied too.
Parameters:
Parameter | Type | Description |
---|---|---|
sourceMaster | IMasterSlide | Slide to clone. |
Returns: IMasterSlide - Added slide.
insertClone(int index, IMasterSlide sourceMaster)
public abstract IMasterSlide insertClone(int index, IMasterSlide sourceMaster)
Inserts a copy of a specified master slide to specified position of the collection. Linked layout slides will be copied too.
Parameters:
Parameter | Type | Description |
---|---|---|
index | int | Index of new slide. |
sourceMaster | IMasterSlide | Slide to clone. |
Returns: IMasterSlide - Inserted master slide.