com.aspose.email

Interfaces

Classes

Enums

Exceptions

com.aspose.email

Class AlternateViewCollection

  • All Implemented Interfaces:
    com.aspose.ms.System.Collections.Generic.IGenericCollection<AlternateView>, com.aspose.ms.System.Collections.Generic.IGenericEnumerable<AlternateView>, com.aspose.ms.System.Collections.Generic.IGenericList<AlternateView>, com.aspose.ms.System.Collections.IEnumerable<AlternateView>, com.aspose.ms.System.IDisposable, Iterable<AlternateView>


    public final class AlternateViewCollection
    extends com.aspose.ms.System.Collections.ObjectModel.Collection<AlternateView>
    implements com.aspose.ms.System.IDisposable

    Represents a collection of AlternateView objects.

    • Method Summary

      Methods 
      Modifier and Type Method and Description
      void clear()
      clear.
      protected void clearItems()
      Removes all elements from the T:System.Collections.ObjectModel.Collection`1.
      void dispose()
      Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
      void insertItem(int index, AlternateView item)
      Inserts an element into the T:System.Collections.ObjectModel.Collection`1 at the specified index.
      void removeAt(int index)
      Removes the element at the specified index of the Collection.
      protected void removeItem(int index)
      Removes the element at the specified index of the T:System.Collections.ObjectModel.Collection`1.
      protected void setItem(int index, AlternateView item)
      Replaces the element at the specified index.
      • Methods inherited from class com.aspose.ms.System.Collections.ObjectModel.Collection

        addItem, containsItem, copyToTArray, get_Item, get_Items, getICollection, getIList, getSyncRoot, indexOfItem, isReadOnly, iterator, removeItem, set_Item, size
    • Method Detail

      • clear

        public void clear()

        clear.

        Specified by:
        clear in interface com.aspose.ms.System.Collections.Generic.IGenericCollection<AlternateView>
        Overrides:
        clear in class com.aspose.ms.System.Collections.ObjectModel.Collection<AlternateView>
      • removeAt

        public void removeAt(int index)

        Removes the element at the specified index of the Collection.

        Specified by:
        removeAt in interface com.aspose.ms.System.Collections.Generic.IGenericList<AlternateView>
        Overrides:
        removeAt in class com.aspose.ms.System.Collections.ObjectModel.Collection<AlternateView>
        Parameters:
        index - The zero-based index of the element to remove.
      • dispose

        public void dispose()

        Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

        Specified by:
        dispose in interface com.aspose.ms.System.IDisposable
      • removeItem

        protected void removeItem(int index)

        Removes the element at the specified index of the T:System.Collections.ObjectModel.Collection`1.

        Parameters:
        index - The zero-based index of the element to remove.
        Throws:
        T:System.ArgumentOutOfRangeException - index is less than zero. -or- index is equal to or greater than P:System.Collections.ObjectModel.Collection`1.Count.
      • clearItems

        protected void clearItems()

        Removes all elements from the T:System.Collections.ObjectModel.Collection`1.

      • setItem

        protected void setItem(int index,
                   AlternateView item)

        Replaces the element at the specified index.

        Overrides:
        setItem in class com.aspose.ms.System.Collections.ObjectModel.Collection<AlternateView>
        Parameters:
        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.
        Throws:
        T:System.ArgumentOutOfRangeException - index is less than zero. -or- index is greater than P:System.Collections.ObjectModel.Collection`1.Count.
      • insertItem

        public void insertItem(int index,
                      AlternateView item)

        Inserts an element into the T:System.Collections.ObjectModel.Collection`1 at the specified index.

        Specified by:
        insertItem in interface com.aspose.ms.System.Collections.Generic.IGenericList<AlternateView>
        Overrides:
        insertItem in class com.aspose.ms.System.Collections.ObjectModel.Collection<AlternateView>
        Parameters:
        index - The zero-based index at which item should be inserted.
        item - The object to insert. The value can be null for reference types.
        Throws:
        T:System.ArgumentOutOfRangeException - index is less than zero. -or- index is greater than P:System.Collections.ObjectModel.Collection`1.Count.