PivotFieldCollection

Inheritance: java.lang.Object, com.aspose.cells.CollectionBase

public class PivotFieldCollection extends CollectionBase

Represents a collection of all the PivotField objects in the different regions of the pivot table.

Methods

MethodDescription
add(PivotField pivotField)Adds a PivotField Object to the specific type PivotFields.
add(Object o)Adds an item to the CollectionBase instance.
addByBaseIndex(int baseFieldIndex)Adds a PivotField Object to the specific type PivotFields.
clear()clear all fields of PivotFieldCollection
contains(Object o)Return whether instance contains this object
equals(Object arg0)
get(int index)Gets the PivotField Object at the specific index.
get(String name)Gets the PivotField Object of the specific name.
getClass()
getCount()Gets the number of elements contained in the CollectionBase instance.
getType()Gets the PivotFields type.
hashCode()
indexOf(Object o)Determines the index of a specific item in the CollectionBase instance.
insert(int index, PivotField pivotField)Insert a pivot field at specific index.
iterator()Returns an enumerator that iterates through the CollectionBase instance.
move(int currPos, int destPos)Moves the PivotField from current position to destination position
notify()
notifyAll()
remove(PivotField pivotField)Removes field from the current region.
removeAt(int index)Removes field by the index.
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

add(PivotField pivotField)

public int add(PivotField pivotField)

Adds a PivotField Object to the specific type PivotFields.

Parameters:

ParameterTypeDescription
pivotFieldPivotFielda PivotField Object.

Returns: int - the index of the PivotField Object in this PivotFields.

add(Object o)

public int add(Object o)

Adds an item to the CollectionBase instance.

Parameters:

ParameterTypeDescription
ojava.lang.ObjectThe Object to add to the CollectionBase instance.

Returns: int - The position into which the new element was inserted.

addByBaseIndex(int baseFieldIndex)

public int addByBaseIndex(int baseFieldIndex)

Adds a PivotField Object to the specific type PivotFields.

Parameters:

ParameterTypeDescription
baseFieldIndexintfield index in the base PivotFields.

Returns: int - the index of the PivotField Object in this PivotFields.

clear()

public void clear()

clear all fields of PivotFieldCollection

contains(Object o)

public boolean contains(Object o)

Return whether instance contains this object

Parameters:

ParameterTypeDescription
ojava.lang.Objecttest object

Returns: boolean - Whether instance contains this object

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

get(int index)

public PivotField get(int index)

Gets the PivotField Object at the specific index.

Parameters:

ParameterTypeDescription
indexint

Returns: PivotField

get(String name)

public PivotField get(String name)

Gets the PivotField Object of the specific name.

Parameters:

ParameterTypeDescription
namejava.lang.String

Returns: PivotField

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getCount()

public int getCount()

Gets the number of elements contained in the CollectionBase instance.

Returns: int - The number of elements contained in the CollectionBase instance.

getType()

public int getType()

Gets the PivotFields type.

See PivotFieldType.

Returns: int

hashCode()

public native int hashCode()

Returns: int

indexOf(Object o)

public int indexOf(Object o)

Determines the index of a specific item in the CollectionBase instance.

Parameters:

ParameterTypeDescription
ojava.lang.ObjectDetermines the index of a specific item in the CollectionBase instance.

Returns: int - The index of value if found in the list; otherwise, -1.

insert(int index, PivotField pivotField)

public void insert(int index, PivotField pivotField)

Insert a pivot field at specific index.

Parameters:

ParameterTypeDescription
indexintThe index.
pivotFieldPivotFieldThe field.

iterator()

public Iterator iterator()

Returns an enumerator that iterates through the CollectionBase instance.

Returns: java.util.Iterator - An iterator for the CollectionBase instance.

move(int currPos, int destPos)

public void move(int currPos, int destPos)

Moves the PivotField from current position to destination position

Parameters:

ParameterTypeDescription
currPosintCurrent position of PivotField based on zero
destPosintDestination position of PivotField based on zero

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

remove(PivotField pivotField)

public void remove(PivotField pivotField)

Removes field from the current region.

Parameters:

ParameterTypeDescription
pivotFieldPivotField

removeAt(int index)

public void removeAt(int index)

Removes field by the index. Only for filter,row,column,data region.

Parameters:

ParameterTypeDescription
indexint

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int