OutlineItemCollection

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

All Implemented Interfaces: Iterable < OutlineItemCollection >

public final class OutlineItemCollection extends Outlines

Represents outline entry in outline hierarchy of PDF document.

Constructors

ConstructorDescription
OutlineItemCollectionInitializes new instance of this class using internal engine outline entry object.
OutlineItemCollectionInitializes outline item instance using root hierarchy object.

Methods

MethodDescription
addAdds outline item to collection.
clearClears all items from the collection.
containsNot supported yet. Always throws NotImplementedException
copyToCopies the outline entries to an System.Array, starting at a particular System.Array index.
deleteDeletes this outline item from the document outline hierarchy.
deleteDeletes this outline item from the document outline hierarchy.
get_ItemGets outline item from the collection using index.
getActionGets the action for this outline item.
getBoldGets bold flag for the title text of this outline item
getColorGets the color for the title text of this outline item.
getDestinationGets the destination for this outline item.
getEngineDictInternal only
getEngineObjInternal only
getFirstGets the outline item representing the first top-level item in the outline hierarchy.
getItalicGets an italic flag for the title text of this outline item
getLastGets the outline item representing the last top-level item in the outline hierarchy.
getLevelGets hierarchy level of outline item.
getNextGets the outline item representing next item relatively this item in the outline hierarchy.
getOpenGet open status (true/false) for outline item.
getParentGets the parent object of this outline item in the outline hierarchy.
getPrevGets the outline item representing previous item relatively this item in the outline hierarchy.
getSyncRootGets the object that can be used to synchronize access to this collection.
getTitleGets the title for this outline item.
getVisibleCountGets the total number of outline items at all levels in the document outline hierarchy.
hasNextCheck if outline item representing next item relatively this item in the outline hierarchy.
insertInserts the outline item into collection at the specified place.
isReadOnlyGets a value indicating whether the collection is read-only.
isSynchronizedGets the value indicating whether access to this collection is synchronized (thread safe).
iteratorReturns an enumerator that iterates through the collection.
next
removeRemove item by index.
removeNot supported yet. Always throws NotImplementedException
setActionSets the action for this outline item.
setBoldSets bold flag for the title text of this outline item
setColorSets the color for the title text of this outline item.
setDestinationSets the destination for this outline item.
setItalicSets italic flag for the title text of this outline item
setOpenSets open status (true/false) for outline item.
setTitleSets the title for this outline item.
sizeCount of collection items. Please dont confuse with VisibleCount: VisibleCount gets number of visible outline item on all levels.

OutlineItemCollection

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

OutlineItemCollection

Initializes outline item instance using root hierarchy object.

add

Adds outline item to collection.

clear

public void clear()

Clears all items from the collection.

contains

Not supported yet. Always throws NotImplementedException

copyTo

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

delete

public void delete()

Deletes this outline item from the document outline hierarchy.

delete

Deletes this outline item from the document outline hierarchy.

get_Item

public OutlineItemCollection get_Item(int index)

Gets outline item from the collection using index.

Parameters:

ParameterTypeDescription
indexIndex within the collection.

Returns: OutlineItemCollection object.

getAction

public PdfAction getAction()

Gets the action for this outline item.

Returns: PdfAction value

getBold

public boolean getBold()

Gets bold flag for the title text of this outline item

Returns: boolean value

getColor

public Color getColor()

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

Returns: Color value

getDestination

public IAppointment getDestination()

Gets the destination for this outline item.

Returns: IAppointment value

getEngineDict

public com.aspose.pdf.engine.data.IPdfDictionary getEngineDict()

Internal only

Returns: IPdfDictionary object

getEngineObj

public com.aspose.pdf.engine.data.IPdfObject getEngineObj()

Internal only

Returns: IPdfObject object

getFirst

public OutlineItemCollection getFirst()

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

Returns: OutlineItemCollection value

getItalic

public boolean getItalic()

Gets an italic flag for the title text of this outline item

Returns: boolean value

getLast

public OutlineItemCollection getLast()

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

Returns: OutlineItemCollection value

getLevel

public int getLevel()

Gets hierarchy level of outline item.

Returns: int value

getNext

public OutlineItemCollection getNext()

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

Returns: OutlineItemCollection value

getOpen

public boolean getOpen()

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

Returns: boolean value

getParent

public Outlines getParent()

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

Returns: Object value

getPrev

public OutlineItemCollection getPrev()

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

Returns: OutlineItemCollection value

getSyncRoot

public Object getSyncRoot()

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

Returns: Object value

getTitle

public String getTitle()

Gets the title for this outline item.

Returns: String value

getVisibleCount

public int getVisibleCount()

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

Returns: int value

hasNext

public final boolean hasNext()

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

Returns: boolean value

insert

Inserts the outline item into collection at the specified place.

isReadOnly

public boolean isReadOnly()

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

Returns: boolean value

isSynchronized

public boolean isSynchronized()

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

Returns: boolean value

iterator

public Iterator < OutlineItemCollection > iterator()

Returns an enumerator that iterates through the collection.

Returns: An System.Collections.IEnumerator object that can be used to iterate through the collection.

next

public OutlineItemCollection next()

remove

public final void remove(int index)

Remove item by index.

Parameters:

ParameterTypeDescription
indexIndex of item to be deleted.

remove

Not supported yet. Always throws NotImplementedException

setAction

Sets the action for this outline item.

setBold

public void setBold(boolean value)

Sets bold flag for the title text of this outline item

Parameters:

ParameterTypeDescription
valueboolean value

setColor

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

setDestination

Sets the destination for this outline item.

setItalic

public void setItalic(boolean value)

Sets italic flag for the title text of this outline item

Parameters:

ParameterTypeDescription
valueboolean value

setOpen

public void setOpen(boolean value)

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

Parameters:

ParameterTypeDescription
valueboolean value

setTitle

Sets the title for this outline item.

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 value