public class DateFormatCollection extends Object implements Iterable<DateFormat>
Modifier | Constructor and Description |
---|---|
protected |
DateFormatCollection(com.aspose.ms.System.Collections.Generic.List<DateFormat> list)
Initializes a new instance of the
DateFormatCollection class. |
Modifier and Type | Method and Description |
---|---|
void |
addItem(DateFormat item)
Adds an date format object to the collection.
|
void |
clear()
Removes all elements from the collection.
|
boolean |
containsItem(DateFormat item)
Determines whether the collection contains a specific item.
|
void |
copyToTArray(DateFormat[] array,
int arrayIndex)
Copies the elements of the collection to an
Array , starting at a particular Array index. |
protected static DateFormatCollection |
create(ArrayReader reader) |
protected static DateFormatCollection |
create(com.aspose.ms.System.Collections.Generic.List<DateFormat> list) |
protected static int |
getByteCount(DateFormatCollection collection) |
boolean |
isReadOnly()
Gets a value indicating whether the collection is read-only.
|
Iterator<DateFormat> |
iterator()
Returns an enumerator that iterates through the collection.
|
boolean |
removeItem(DateFormat item)
Removes the first occurrence of a specific element from the collection.
|
int |
size()
Gets the number of elements contained in the collection.
|
protected static void |
toByteArray(DateFormatCollection collection,
ArrayWriter writer) |
protected DateFormatCollection(com.aspose.ms.System.Collections.Generic.List<DateFormat> list)
Initializes a new instance of the DateFormatCollection
class.
list
- The initial list of DateFormat
objects.protected static DateFormatCollection create(com.aspose.ms.System.Collections.Generic.List<DateFormat> list)
public final void addItem(DateFormat item)
Adds an date format object to the collection.
item
- The date format object to add to the collection.public final void clear()
Removes all elements from the collection.
public final boolean containsItem(DateFormat item)
Determines whether the collection contains a specific item.
item
- The item to locate in the collection.true
if item is found in the collection; otherwise, false
.public final void copyToTArray(DateFormat[] array, int arrayIndex)
Copies the elements of the collection to an Array
, starting at a particular Array
index.
array
- The one-dimensional Array
that is the destination of the elements copied from the collection.arrayIndex
- The zero-based index in array at which copying begins.public final int size()
Gets the number of elements contained in the collection.
public final boolean isReadOnly()
Gets a value indicating whether the collection is read-only.
true
if the collection is read-only; otherwise, false
.public final boolean removeItem(DateFormat item)
Removes the first occurrence of a specific element from the collection.
item
- The item to remove from the collection.true
if item was successfully removed from the collection; otherwise, false
.
This method also returns false
if item is not found in the collection.public final Iterator<DateFormat> iterator()
Returns an enumerator that iterates through the collection.
iterator
in interface Iterable<DateFormat>
protected static int getByteCount(DateFormatCollection collection)
protected static void toByteArray(DateFormatCollection collection, ArrayWriter writer)
protected static DateFormatCollection create(ArrayReader reader)