com.aspose.slides
Class PortionCollection

java.lang.Object
  extended by com.aspose.slides.PortionCollection
All Implemented Interfaces:
com.aspose.ms.System.Collections.Generic.IGenericEnumerable<IPortion>, com.aspose.ms.System.Collections.IEnumerable<IPortion>, IPortionCollection, java.lang.Iterable<IPortion>

public final class PortionCollection
extends java.lang.Object
implements IPortionCollection

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.
 void copyTo(IPortion[] array, int arrayIndex)
           Copies the elements of the T:System.Collections.Generic.ICollection`1 to an T:System.Array, starting at a particular T:System.Array index.
 IPortion get_Item(int index)
           Gets the element at the specified index.
 int getCount()
           Gets the number of elements actually contained in the collection.
 com.aspose.slides.IDOMObject getParent_Immediate()
           Returns Parent_Immediate object.
 int indexOf(IPortion item)
           Determines the index of a specific item in the T:System.Collections.Generic.IList`1.
 void insert(int index, IPortion value)
           Inserts a Portion into the collection at the specified index.
 boolean isReadOnly()
           Gets a value indicating whether the T:System.Collections.Generic.ICollection`1 is read-only.
 com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IPortion> iterator()
           Returns an enumerator that iterates through the collection.
 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.
 void set_Item(int index, IPortion value)
           Gets the element at the specified index.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getCount

public int getCount()

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

Specified by:
getCount in interface IPortionCollection

isReadOnly

public boolean isReadOnly()

Gets a value indicating whether the T:System.Collections.Generic.ICollection`1 is read-only. Read-only boolean.

Returns:
true if the T:System.Collections.Generic.ICollection`1 is read-only; otherwise, false.

get_Item

public IPortion get_Item(int index)

Gets the element at the specified index.

Specified by:
get_Item in interface IPortionCollection

set_Item

public void set_Item(int index,
                     IPortion value)

Gets the element at the specified index.


add

public void add(IPortion value)

Adds a Portion to the end of collection.

Specified by:
add in interface IPortionCollection
Parameters:
value - The Portion to be added to the end of the collection.

indexOf

public int indexOf(IPortion item)

Determines the index of a specific item in the T:System.Collections.Generic.IList`1.

Specified by:
indexOf in interface IPortionCollection
Parameters:
item - The object to locate in the T:System.Collections.Generic.IList`1.
Returns:
The index of item if found in the list; otherwise, -1.

insert

public void insert(int index,
                   IPortion value)

Inserts a Portion into the collection at the specified index.

Specified by:
insert in interface IPortionCollection
Parameters:
index - The zero-based index at which Portion should be inserted.
value - The Portion to insert.

clear

public void clear()

Removes all elements from the collection.

Specified by:
clear in interface IPortionCollection

contains

public boolean contains(IPortion item)

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

Specified by:
contains in interface IPortionCollection
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.

copyTo

public void copyTo(IPortion[] array,
                   int arrayIndex)

Copies the elements of the T:System.Collections.Generic.ICollection`1 to an T:System.Array, starting at a particular T:System.Array index.

Parameters:
array - The one-dimensional T:System.Array that is the destination of the elements copied from T:System.Collections.Generic.ICollection`1. The T:System.Array must have zero-based indexing.
arrayIndex - The zero-based index in array at which copying begins.
Throws:
T:System.ArgumentNullException - array is null.
T:System.ArgumentOutOfRangeException - arrayIndex is less than 0.
T:System.ArgumentException - The number of elements in the source T:System.Collections.Generic.ICollection`1 is greater than the available space from arrayIndex to the end of the destination array.

remove

public boolean remove(IPortion item)

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

Specified by:
remove in interface IPortionCollection
Parameters:
item - The object to remove from the T:System.Collections.Generic.ICollection`1.
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.
Throws:
T:System.NotSupportedException - The T:System.Collections.Generic.ICollection`1 is read-only.

removeAt

public void removeAt(int index)

Removes the element at the specified index of the collection.

Specified by:
removeAt in interface IPortionCollection
Parameters:
index - The zero-based index of the element to remove.

iterator

public com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IPortion> iterator()

Returns an enumerator that iterates through the collection.

Specified by:
iterator in interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable<IPortion>
Specified by:
iterator in interface com.aspose.ms.System.Collections.IEnumerable<IPortion>
Specified by:
iterator in interface java.lang.Iterable<IPortion>
Returns:
A T:System.Collections.Generic.IEnumerator`1 that can be used to iterate through the collection.

getParent_Immediate

public com.aspose.slides.IDOMObject getParent_Immediate()

Returns Parent_Immediate object. Read-only IDOMObject.



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