public final class LinkedResourceCollection extends Collection<LinkedResource> implements IDisposable, Closeable
Represents a collection of LinkedResource objects
| Modifier and Type | Method and Description |
|---|---|
void |
clear(boolean removeHtmlLinks)
Removes all elements from this collection.
|
protected void |
clearItems()
Removes all elements from the
System.Collections.ObjectModel.Collection`1. |
void |
close() |
void |
dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
|
void |
insertItem(int index,
LinkedResource item)
Inserts an element into the
System.Collections.ObjectModel.Collection`1 at the specified index. |
boolean |
remove(LinkedResource item)
Removes the first occurrence of a LinkedResource object from the LinkedResourceCollection.
|
void |
removeAt(int index,
boolean removeHtmlLink)
Removes the element at the specified index from this collection.
|
protected void |
removeItem(int index)
Removes the element at the specified index of the
System.Collections.ObjectModel.Collection`1. |
protected void |
setItem(int index,
LinkedResource item)
Replaces the element at the specified index.
|
public final void dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
dispose in interface IDisposablepublic void close()
close in interface Closeableclose in interface AutoCloseablepublic final void removeAt(int index,
boolean removeHtmlLink)
Removes the element at the specified index from this collection.
index - The zero-based index of the element to remove.removeHtmlLink - Defines need remove link from html body or not.public final boolean remove(LinkedResource item)
Removes the first occurrence of a LinkedResource object from the LinkedResourceCollection.
item - The LinkedResource to remove.public final void clear(boolean removeHtmlLinks)
Removes all elements from this collection.
removeHtmlLinks - Defines need remove links from html body or not.protected void removeItem(int index)
Removes the element at the specified index of the System.Collections.ObjectModel.Collection`1.
index - The zero-based index of the element to remove.ArgumentOutOfRangeException - index is less than zero.
-or-
index is equal to or greater than P:System.Collections.ObjectModel.Collection`1.Count.protected void clearItems()
Removes all elements from the System.Collections.ObjectModel.Collection`1.
protected void setItem(int index,
LinkedResource item)
Replaces the element at the specified index.
setItem in class Collection<LinkedResource>index - The zero-based index of the element to replace.item - The new value for the element at the specified index. The value can be null for reference types.ArgumentOutOfRangeException - index is less than zero.
-or-
index is greater than P:System.Collections.ObjectModel.Collection`1.Count.public void insertItem(int index,
LinkedResource item)
Inserts an element into the System.Collections.ObjectModel.Collection`1 at the specified index.
insertItem in interface IGenericList<LinkedResource>insertItem in class Collection<LinkedResource>index - The zero-based index at which item should be inserted.item - The object to insert. The value can be null for reference types.ArgumentOutOfRangeException - index is less than zero.
-or-
index is greater than P:System.Collections.ObjectModel.Collection`1.Count.Copyright (c) 2008-2024 Aspose Pty Ltd. All Rights Reserved.