com.aspose.slides
Interface IPortionCollection

All Superinterfaces:
com.aspose.ms.System.Collections.IEnumerable<IPortion>, com.aspose.ms.System.Collections.Generic.IGenericEnumerable<IPortion>, java.lang.Iterable<IPortion>
All Known Implementing Classes:
PortionCollection

public interface IPortionCollection
extends com.aspose.ms.System.Collections.Generic.IGenericEnumerable<IPortion>

Represents a collection of a portions.


Method Summary
 void add(IPortion value)
           Adds a Portion to the end of collection.
 void clear()
           Removes all elements from the collection.
 boolean contains(IPortion item)
           Determines whether the T:System.Collections.Generic.ICollection`1 contains a specific value.
 IPortion get_Item(int index)
           Gets the element at the specified index.
 int getCount()
           Gets the number of elements actually contained in the collection.
 int indexOf(IPortion item)
           Determines the index of a specific portion in collection.
 void insert(int index, IPortion value)
           Inserts a Portion into the collection at the specified index.
 boolean remove(IPortion item)
           Removes the first occurrence of a specific object from the T:System.Collections.Generic.ICollection`1.
 void removeAt(int index)
           Removes the element at the specified index of the collection.
 
Methods inherited from interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable
iterator
 

Method Detail

get_Item

IPortion get_Item(int index)

Gets the element at the specified index.


getCount

int getCount()

Gets the number of elements actually contained in the collection. Read-only int.


add

void add(IPortion value)

Adds a Portion to the end of collection.

Parameters:
value - The Portion to be added to the end of the collection.

indexOf

int indexOf(IPortion item)

Determines the index of a specific portion in collection.

Parameters:
item - The portion to locate in the collection.
Returns:
The index of item if found in the collection; otherwise, -1.

insert

void insert(int index,
            IPortion value)

Inserts a Portion into the collection at the specified index.

Parameters:
index - The zero-based index at which Portion should be inserted.
value - The Portion to insert.

clear

void clear()

Removes all elements from the collection.


contains

boolean contains(IPortion item)

Determines whether the T:System.Collections.Generic.ICollection`1 contains a specific value.

Parameters:
item - The object to locate in the T:System.Collections.Generic.ICollection`1.
Returns:
true if item is found in the T:System.Collections.Generic.ICollection`1; otherwise, false.

remove

boolean remove(IPortion item)

Removes the first occurrence of a specific object from the T:System.Collections.Generic.ICollection`1.

Parameters:
itemThe - object to remove from the T:System.Collections.Generic.ICollection`1.The T:System.Collections.Generic.ICollection`1 is read-only.
Returns:
true if item was successfully removed from the T:System.Collections.Generic.ICollection`1; otherwise, false. This method also returns false if item is not found in the original T:System.Collections.Generic.ICollection`1.

removeAt

void removeAt(int index)

Removes the element at the specified index of the collection.

Parameters:
index - The zero-based index of the element to remove.


Copyright © Copyright 2004-2016 Aspose Pty Ltd. All Rights Reserved.