OutlineItemCollection

Inheritance: java.lang.Object, com.aspose.pdf.Outlines

public final class OutlineItemCollection extends Outlines

Represents outline entry in outline hierarchy of PDF document.

Constructors

Constructor Description
OutlineItemCollection(IPdfObject outline) Initializes new instance of this class using internal engine outline entry object.
OutlineItemCollection(OutlineCollection outlines) Initializes outline item instance using root hierarchy object.

Methods

Method Description
add(OutlineItemCollection outline) Adds outline item to collection.
clear() Clears all items from the collection.
contains(OutlineItemCollection item) Not supported yet.
copyTo(OutlineItemCollection[] array, int index) Copies the outline entries to an System.Array, starting at a particular System.Array index.
delete() Deletes this outline item from the document outline hierarchy.
delete(String name) Deletes outline entry with specified name from the document outline hierarchy.
equals(Object arg0)
getAction() Gets the action for this outline item.
getBold() Gets bold flag for the title text of this outline item
getClass()
getColor() Gets the color for the title text of this outline item.
getDestination() Gets the destination for this outline item.
getEngineDict() Internal only
getEngineObj() Internal only
getFirst() Gets the outline item representing the first top-level item in the outline hierarchy.
getItalic() Gets italic flag for the title text of this outline item
getLast() Gets the outline item representing the last top-level item in the outline hierarchy.
getLevel() Gets hierarchy level of outline item.
getNext() Gets the outline item representing next item relatively this item in the outline hierarchy.
getOpen() Get open status (true/false) for outline item.
getParent() Gets the parent object of this outline item in the outline hierarchy.
getPrev() Gets the outline item representing previous item relatively this item in the outline hierarchy.
getSyncRoot() Gets the object that can be used to synchronize access to this collection.
getTitle() Gets the title for this outline item.
getVisibleCount() Gets the total number of outline items at all levels in the document outline hierarchy.
get_Item(int index) Gets outline item from the collection using index.
hasNext() Check if outline item representing next item relatively this item in the outline hierarchy.
hashCode()
insert(int index, OutlineItemCollection outline) Inserts the outline item into collection at the specified place.
isReadOnly() Gets a value indicating whether the collection is read-only.
isSynchronized() Gets the value indicating whether access to this collection is synchronized (thread safe).
iterator() Returns an enumerator that iterates through the collection.
iterator_Rename_Namesake()
next()
notify()
notifyAll()
remove(OutlineItemCollection item) Not supported yet.
remove(int index) Remove item by index.
setAction(PdfAction value) Sets the action for this outline item.
setBold(boolean value) Sets bold flag for the title text of this outline item
setColor(Color value) Sets the color for the title text of this outline item.
setDestination(IAppointment value) Sets the destination for this outline item.
setItalic(boolean value) Sets italic flag for the title text of this outline item
setOpen(boolean value) Sets open status (true/false) for outline item.
setTitle(String value) Sets the title for this outline item.
size() Count of collection items.
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

OutlineItemCollection(IPdfObject outline)

public OutlineItemCollection(IPdfObject outline)

Initializes new instance of this class using internal engine outline entry object.

Parameters:

Parameter Type Description
outline IPdfObject Internal engine object of outline entry.

OutlineItemCollection(OutlineCollection outlines)

public OutlineItemCollection(OutlineCollection outlines)

Initializes outline item instance using root hierarchy object.

Parameters:

Parameter Type Description
outlines OutlineCollection Outlune collection.

add(OutlineItemCollection outline)

public void add(OutlineItemCollection outline)

Adds outline item to collection.

Parameters:

Parameter Type Description
outline OutlineItemCollection The outline item to be added.

clear()

public void clear()

Clears all items from the collection.

contains(OutlineItemCollection item)

public boolean contains(OutlineItemCollection item)

Not supported yet.

Always throws NotImplementedException

Parameters:

Parameter Type Description
item OutlineItemCollection The object to locate in the collection

Returns: boolean - boolean value True - if item found; otherwise, false.

copyTo(OutlineItemCollection[] array, int index)

public void copyTo(OutlineItemCollection[] array, int index)

Copies the outline entries to an System.Array, starting at a particular System.Array index.

Parameters:

Parameter Type Description
array OutlineItemCollection[] The one-dimensional System.Array that is the destination. Must have zero-based indexing.
index int The zero-based index in array at which copying begins.

delete()

public void delete()

Deletes this outline item from the document outline hierarchy.

delete(String name)

public void delete(String name)

Deletes outline entry with specified name from the document outline hierarchy.

Parameters:

Parameter Type Description
name java.lang.String Title of outline entry will be deleted.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

Parameter Type Description
arg0 java.lang.Object

Returns: boolean

getAction()

public PdfAction getAction()

Gets the action for this outline item.

Returns: PdfAction - PdfAction value

getBold()

public boolean getBold()

Gets bold flag for the title text of this outline item

Returns: boolean - boolean value

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getColor()

public Color getColor()

Gets the color for the title text of this outline item.

Returns: Color - Color value

getDestination()

public IAppointment getDestination()

Gets the destination for this outline item.

Returns: IAppointment - IAppointment value

getEngineDict()

public IPdfDictionary getEngineDict()

Internal only

Returns: IPdfDictionary - IPdfDictionary object

getEngineObj()

public IPdfObject getEngineObj()

Internal only

Returns: IPdfObject - IPdfObject object

getFirst()

public OutlineItemCollection getFirst()

Gets the outline item representing the first top-level item in the outline hierarchy.

Returns: OutlineItemCollection - OutlineItemCollection value

getItalic()

public boolean getItalic()

Gets italic flag for the title text of this outline item

Returns: boolean - boolean value

getLast()

public OutlineItemCollection getLast()

Gets the outline item representing the last top-level item in the outline hierarchy.

Returns: OutlineItemCollection - OutlineItemCollection value

getLevel()

public int getLevel()

Gets hierarchy level of outline item.

Returns: int - int value

getNext()

public OutlineItemCollection getNext()

Gets the outline item representing next item relatively this item in the outline hierarchy.

Returns: OutlineItemCollection - OutlineItemCollection value

getOpen()

public boolean getOpen()

Get open status (true/false) for outline item.

Returns: boolean - boolean value

getParent()

public Outlines getParent()

Gets the parent object of this outline item in the outline hierarchy.

Returns: Outlines - Object value

getPrev()

public OutlineItemCollection getPrev()

Gets the outline item representing previous item relatively this item in the outline hierarchy.

Returns: OutlineItemCollection - OutlineItemCollection value

getSyncRoot()

public Object getSyncRoot()

Gets the object that can be used to synchronize access to this collection.

Returns: java.lang.Object - Object value

getTitle()

public String getTitle()

Gets the title for this outline item.

Returns: java.lang.String - String value

getVisibleCount()

public int getVisibleCount()

Gets the total number of outline items at all levels in the document outline hierarchy.

Returns: int - int value

get_Item(int index)

public OutlineItemCollection get_Item(int index)

Gets outline item from the collection using index.

Parameters:

Parameter Type Description
index int Index within the collection.

Returns: OutlineItemCollection - OutlineItemCollection object.

hasNext()

public final boolean hasNext()

Check if outline item representing next item relatively this item in the outline hierarchy.

Returns: boolean - boolean value

hashCode()

public native int hashCode()

Returns: int

insert(int index, OutlineItemCollection outline)

public void insert(int index, OutlineItemCollection outline)

Inserts the outline item into collection at the specified place.

Parameters:

Parameter Type Description
index int The index specifying place for inserting.
outline OutlineItemCollection The outline item should be inserted.

isReadOnly()

public boolean isReadOnly()

Gets a value indicating whether the collection is read-only.

Returns: boolean - boolean value

isSynchronized()

public boolean isSynchronized()

Gets the value indicating whether access to this collection is synchronized (thread safe).

Returns: boolean - boolean value

iterator()

public Iterator<OutlineItemCollection> iterator()

Returns an enumerator that iterates through the collection.

Returns: java.util.Iterator<com.aspose.pdf.OutlineItemCollection> - An System.Collections.IEnumerator object that can be used to iterate through the collection.

iterator_Rename_Namesake()

public final System.Collections.IEnumerator iterator_Rename_Namesake()

Returns: com.aspose.ms.System.Collections.IEnumerator

next()

public OutlineItemCollection next()

Returns: OutlineItemCollection

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

remove(OutlineItemCollection item)

public boolean remove(OutlineItemCollection item)

Not supported yet.

Always throws NotImplementedException

Parameters:

Parameter Type Description
item OutlineItemCollection OutlineItemCollection instance

Returns: boolean - boolean value True - if item removed; otherwise, false.

remove(int index)

public final void remove(int index)

Remove item by index.

Parameters:

Parameter Type Description
index int Index of item to be deleted.

setAction(PdfAction value)

public void setAction(PdfAction value)

Sets the action for this outline item.

Parameters:

Parameter Type Description
value PdfAction PdfAction value

setBold(boolean value)

public void setBold(boolean value)

Sets bold flag for the title text of this outline item

Parameters:

Parameter Type Description
value boolean boolean value

setColor(Color value)

public void setColor(Color value)

Sets the color for the title text of this outline item.

Parameters:

Parameter Type Description
value java.awt.Color Color object

setDestination(IAppointment value)

public void setDestination(IAppointment value)

Sets the destination for this outline item.

Parameters:

Parameter Type Description
value IAppointment IAppointment value

setItalic(boolean value)

public void setItalic(boolean value)

Sets italic flag for the title text of this outline item

Parameters:

Parameter Type Description
value boolean boolean value

setOpen(boolean value)

public void setOpen(boolean value)

Sets open status (true/false) for outline item.

Parameters:

Parameter Type Description
value boolean boolean value

setTitle(String value)

public void setTitle(String value)

Sets the title for this outline item.

Parameters:

Parameter Type Description
value java.lang.String String value

size()

public int size()

Count of collection items. Please dont confuse with VisibleCount: VisibleCount gets number of visible outline item on all levels.

Returns: int

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

Parameter Type Description
arg0 long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

Parameter Type Description
arg0 long
arg1 int