public final class OutlineItemCollection extends Outlines
Represents outline entry in outline hierarchy of PDF document.
Modifier and Type | Field and Description |
---|---|
com.aspose.pdf.engine.IPdfDocument |
document
For internal usage only.
|
Constructor and Description |
---|
OutlineItemCollection(com.aspose.pdf.engine.data.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.
|
Modifier and Type | Method and Description |
---|---|
void |
add(OutlineItemCollection outline)
Adds outline item to collection.
|
void |
clear()
Clears all items from the collection.
|
boolean |
contains(OutlineItemCollection item)
Not supported yet.
|
void |
copyTo(OutlineItemCollection[] array,
int index)
Copies the outline entries to an System.Array, starting at a particular System.Array index.
|
void |
delete()
Deletes this outline item from the document outline hierarchy.
|
void |
delete(String name)
Deletes outline entry with specified name from the document outline hierarchy.
|
OutlineItemCollection |
get_Item(int index)
Gets outline item from the collection using index.
|
PdfAction |
getAction()
Gets the action for this outline item.
|
boolean |
getBold()
Gets bold flag for the title text of this outline item
|
Color |
getColor()
Gets the color for the title text of this outline item.
|
IAppointment |
getDestination()
Gets the destination for this outline item.
|
com.aspose.pdf.engine.data.IPdfDictionary |
getEngineDict()
Internal only
|
com.aspose.pdf.engine.data.IPdfObject |
getEngineObj()
Internal only
|
OutlineItemCollection |
getFirst()
Gets the outline item representing the first top-level item in the outline hierarchy.
|
boolean |
getItalic()
Gets italic flag for the title text of this outline item
|
OutlineItemCollection |
getLast()
Gets the outline item representing the last top-level item in the outline hierarchy.
|
int |
getLevel()
Gets hierarchy level of outline item.
|
OutlineItemCollection |
getNext()
Gets the outline item representing next item relatively this item in the outline hierarchy.
|
boolean |
getOpen()
Get open status (true/false) for outline item.
|
Outlines |
getParent()
Gets the parent object of this outline item in the outline hierarchy.
|
OutlineItemCollection |
getPrev()
Gets the outline item representing previous item relatively this item in the outline
hierarchy.
|
Object |
getSyncRoot()
Gets the object that can be used to synchronize access to this collection.
|
String |
getTitle()
Gets the title for this outline item.
|
int |
getVisibleCount()
Gets the total number of outline items at all levels in the document outline hierarchy.
|
boolean |
hasNext()
Check if outline item representing next item relatively this item in the outline hierarchy.
|
void |
insert(int index,
OutlineItemCollection outline)
Inserts the outline item into collection at the specified place.
|
boolean |
isReadOnly()
Gets a value indicating whether the collection is read-only.
|
boolean |
isSynchronized()
Gets the value indicating whether access to this collection is synchronized (thread safe).
|
Iterator<OutlineItemCollection> |
iterator()
Returns an enumerator that iterates through the collection.
|
OutlineItemCollection |
next() |
void |
remove(int index)
Remove item by index.
|
boolean |
remove(OutlineItemCollection item)
Not supported yet.
|
void |
setAction(PdfAction value)
Sets the action for this outline item.
|
void |
setBold(boolean value)
Sets bold flag for the title text of this outline item
|
void |
setColor(Color value)
Sets the color for the title text of this outline item.
|
void |
setDestination(IAppointment value)
Sets the destination for this outline item.
|
void |
setItalic(boolean value)
Sets italic flag for the title text of this outline item
|
void |
setOpen(boolean value)
Sets open status (true/false) for outline item.
|
void |
setTitle(String value)
Sets the title for this outline item.
|
int |
size()
Count of collection items.
|
iterator_Rename_Namesake
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public OutlineItemCollection(com.aspose.pdf.engine.data.IPdfObject outline)
Initializes new instance of this class using internal engine outline entry object.
outline
- Internal engine object of outline entry.public OutlineItemCollection(OutlineCollection outlines)
Initializes outline item instance using root hierarchy object.
outlines
- Outlune collection.public com.aspose.pdf.engine.data.IPdfDictionary getEngineDict()
public com.aspose.pdf.engine.data.IPdfObject getEngineObj()
Internal only
public String getTitle()
Gets the title for this outline item.
public void setTitle(String value)
Sets the title for this outline item.
value
- String valuepublic IAppointment getDestination()
Gets the destination for this outline item.
public void setDestination(IAppointment value)
Sets the destination for this outline item.
value
- IAppointment valuepublic PdfAction getAction()
Gets the action for this outline item.
public void setAction(PdfAction value)
Sets the action for this outline item.
value
- PdfAction valuepublic Color getColor()
Gets the color for the title text of this outline item.
public void setColor(Color value)
Sets the color for the title text of this outline item.
value
- Color objectpublic boolean getItalic()
Gets italic flag for the title text of this outline item
public void setItalic(boolean value)
Sets italic flag for the title text of this outline item
value
- boolean valuepublic boolean getBold()
Gets bold flag for the title text of this outline item
public void setBold(boolean value)
Sets bold flag for the title text of this outline item
value
- boolean valuepublic OutlineItemCollection getFirst()
Gets the outline item representing the first top-level item in the outline hierarchy.
public OutlineItemCollection getLast()
Gets the outline item representing the last top-level item in the outline hierarchy.
public OutlineItemCollection getPrev()
Gets the outline item representing previous item relatively this item in the outline hierarchy.
public OutlineItemCollection getNext()
Gets the outline item representing next item relatively this item in the outline hierarchy.
public final boolean hasNext()
Check if outline item representing next item relatively this item in the outline hierarchy.
public OutlineItemCollection next()
public Outlines getParent()
Gets the parent object of this outline item in the outline hierarchy.
public int getVisibleCount()
Gets the total number of outline items at all levels in the document outline hierarchy.
getVisibleCount
in class Outlines
public boolean isSynchronized()
Gets the value indicating whether access to this collection is synchronized (thread safe).
public Object getSyncRoot()
Gets the object that can be used to synchronize access to this collection.
public boolean isReadOnly()
Gets a value indicating whether the collection is read-only.
isReadOnly
in class Outlines
public boolean getOpen()
Get open status (true/false) for outline item.
public void setOpen(boolean value)
Sets open status (true/false) for outline item.
value
- boolean valuepublic void delete()
Deletes this outline item from the document outline hierarchy.
public void delete(String name)
Deletes outline entry with specified name from the document outline hierarchy.
name
- Title of outline entry will be deleted.public void copyTo(OutlineItemCollection[] array, int index)
Copies the outline entries to an System.Array, starting at a particular System.Array index.
public Iterator<OutlineItemCollection> iterator()
Returns an enumerator that iterates through the collection.
iterator
in interface Iterable<OutlineItemCollection>
iterator
in class Outlines
public void add(OutlineItemCollection outline)
Adds outline item to collection.
public void insert(int index, OutlineItemCollection outline)
Inserts the outline item into collection at the specified place.
index
- The index specifying place for inserting.outline
- The outline item should be inserted.public void clear()
Clears all items from the collection.
public boolean contains(OutlineItemCollection item)
Always throws NotImplementedException
public boolean remove(OutlineItemCollection item)
Always throws NotImplementedException
public final void remove(int index)
Remove item by index.
index
- Index of item to be deleted.public int size()
Count of collection items. Please dont confuse with VisibleCount: VisibleCount gets number of visible outline item on all levels.
public OutlineItemCollection get_Item(int index)
Gets outline item from the collection using index.
index
- Index within the collection.public int getLevel()
Gets hierarchy level of outline item.