public class BoundsCheckableList<T extends IBoundsCheckableItem> extends Object implements com.aspose.ms.System.Collections.Generic.IGenericList<T>
Represents BoundsCheckableList - wrapper around System.Collections.Generic.List.
| Constructor and Description |
|---|
BoundsCheckableList()
Initializes a new instance of the BoundsCheckableList class.
|
BoundsCheckableList(int boundsCheckMode,
double containerWidth,
double containerHeight)
Initializes a new instance of the BoundsCheckableList class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addItem(T item)
Adds an object to the end of the System.Collections.Generic.List depending on "boundsCheckMode" parameter.
|
void |
clear()
Removes all elements from the System.Collections.Generic.List.
|
boolean |
containsItem(T item)
Determines whether an element is in the System.Collections.Generic.List.
|
void |
copyToTArray(T[] array,
int arrayIndex)
Copies the entire System.Collections.Generic.List to a compatible one-dimensional array, starting at the specified index of the target array.
|
T |
get_Item(int index)
Gets or sets paragraph from or to collection.
|
int |
indexOfItem(T item)
Searches for the specified object and returns the zero-based index of the first occurrence within the entire System.Collections.Generic.List.
|
void |
insertItem(int index,
T item)
Inserts an element into the System.Collections.Generic.List at the specified index.
|
boolean |
isReadOnly()
Gets the value indicating if collection is readonly.
|
com.aspose.ms.System.Collections.Generic.IGenericEnumerator<T> |
iterator()
Returns an enumerator that iterates through the System.Collections.Generic.List.
|
void |
removeAt(int index)
Removes the element at the specified index of the System.Collections.Generic.List.
|
boolean |
removeItem(T item)
Removes the first occurrence of a specific object from the System.Collections.Generic.List.
|
void |
set_Item(int index,
T value)
Gets or sets paragraph from or to collection.
|
int |
size()
Gets the number of elements contained in the System.Collections.Generic.List.
|
void |
updateBoundsCheckMode(int boundsCheckMode)
Updates boundsCheckMode parameter for initialized collection.
|
void |
updateBoundsCheckMode(int boundsCheckMode,
double containerWidth,
double containerHeight)
Updates boundsCheckMode parameter for initialized collection.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic BoundsCheckableList()
Initializes a new instance of the BoundsCheckableList class.
public BoundsCheckableList(int boundsCheckMode,
double containerWidth,
double containerHeight)
Initializes a new instance of the BoundsCheckableList class.
boundsCheckMode - The bounds cCheck mode.containerWidth - The container width.containerHeight - The container height.public final void addItem(T item)
Adds an object to the end of the System.Collections.Generic.List depending on "boundsCheckMode" parameter.
addItem in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<T extends IBoundsCheckableItem>item - The object to be added to the end of the System.Collections.Generic.List. The value can be "null" for reference types.public final com.aspose.ms.System.Collections.Generic.IGenericEnumerator<T> iterator()
Returns an enumerator that iterates through the System.Collections.Generic.List.
iterator in interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable<T extends IBoundsCheckableItem>iterator in interface com.aspose.ms.System.Collections.IEnumerable<T extends IBoundsCheckableItem>iterator in interface Iterable<T extends IBoundsCheckableItem>public final void clear()
Removes all elements from the System.Collections.Generic.List.
clear in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<T extends IBoundsCheckableItem>public final boolean containsItem(T item)
Determines whether an element is in the System.Collections.Generic.List.
containsItem in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<T extends IBoundsCheckableItem>item - The object to locate in the System.Collections.Generic.List. The value can be null for reference types.itemitem is found in the System.Collections.Generic.List; otherwise, false.public final void copyToTArray(T[] array, int arrayIndex)
Copies the entire System.Collections.Generic.List to a compatible one-dimensional array, starting at the specified index of the target array.
copyToTArray in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<T extends IBoundsCheckableItem>array - The one-dimensional System.Array that is the destination of the elements copied from System.Collections.Generic.List. The System.Array must have zero-based indexing.arrayIndex - The zero-based index in array at which copying begins.com.aspose.ms.System.ArgumentNullException - arrayarray is null.com.aspose.ms.System.ArgumentOutOfRangeException - arrayIndexarrayIndex is less than 0.com.aspose.ms.System.ArgumentException - The number of elements in the source System.Collections.Generic.List is greater than the available space from arrayIndexarrayIndex to the end of the destination arrayarray.public final boolean removeItem(T item)
Removes the first occurrence of a specific object from the System.Collections.Generic.List.
removeItem in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<T extends IBoundsCheckableItem>item - The object to remove from the System.Collections.Generic.List. The value can be null for reference types.itemitem is successfully removed; otherwise, false. This method also returns false if itemitem was not found in the System.Collections.Generic.List.public final int size()
Gets the number of elements contained in the System.Collections.Generic.List.
size in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<T extends IBoundsCheckableItem>public final boolean isReadOnly()
Gets the value indicating if collection is readonly.
isReadOnly in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<T extends IBoundsCheckableItem>public final int indexOfItem(T item)
Searches for the specified object and returns the zero-based index of the first occurrence within the entire System.Collections.Generic.List.
indexOfItem in interface com.aspose.ms.System.Collections.Generic.IGenericList<T extends IBoundsCheckableItem>item - The object to locate in the System.Collections.Generic.List. The value can be null for reference types.itemitem within the entire System.Collections.Generic.List, if found; otherwise, –1.public final void insertItem(int index,
T item)
Inserts an element into the System.Collections.Generic.List at the specified index.
insertItem in interface com.aspose.ms.System.Collections.Generic.IGenericList<T extends IBoundsCheckableItem>index - The zero-based index at which item should be inserted.item - The object to insert. The value can be null for reference types.com.aspose.ms.System.ArgumentOutOfRangeException - indexindex is less than 0. -or- indexindex is greater than Count.public final void removeAt(int index)
Removes the element at the specified index of the System.Collections.Generic.List.
removeAt in interface com.aspose.ms.System.Collections.Generic.IGenericList<T extends IBoundsCheckableItem>index - The zero-based index of the element to remove.com.aspose.ms.System.ArgumentOutOfRangeException - indexindex is less than 0. -or- indexindex is equal to or greater than Count.public final T get_Item(int index)
Gets or sets paragraph from or to collection.
get_Item in interface com.aspose.ms.System.Collections.Generic.IGenericList<T extends IBoundsCheckableItem>index - The paragraph index.public final void set_Item(int index,
T value)
Gets or sets paragraph from or to collection.
set_Item in interface com.aspose.ms.System.Collections.Generic.IGenericList<T extends IBoundsCheckableItem>index - The paragraph index.public final void updateBoundsCheckMode(int boundsCheckMode,
double containerWidth,
double containerHeight)
Updates boundsCheckMode parameter for initialized collection.
boundsCheckMode - The bounds check mode.containerWidth - The container width.containerHeight - The container height.public final void updateBoundsCheckMode(int boundsCheckMode)
Updates boundsCheckMode parameter for initialized collection.
boundsCheckMode - The bounds check mode.Copyright © 2025 Aspose. All Rights Reserved.