com.aspose.email

Interfaces

Classes

Enums

Exceptions

com.aspose.email

Class LinkedResourceCollection

    • Method Summary

      Methods 
      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.
      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.
      • Methods inherited from class Collection

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

      • dispose

        public final void dispose()

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

        Specified by:
        dispose in interface IDisposable
      • removeAt

        public final void removeAt(int index,
                    boolean removeHtmlLink)

        Removes the element at the specified index from this collection.

        Parameters:
        index - The zero-based index of the element to remove.
        removeHtmlLink - Defines need remove link from html body or not.
      • clear

        public final void clear(boolean removeHtmlLinks)

        Removes all elements from this collection.

        Parameters:
        removeHtmlLinks - Defines need remove links from html body or not.
      • removeItem

        protected void removeItem(int index)

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

        Parameters:
        index - The zero-based index of the element to remove.
        Throws:
        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 System.Collections.ObjectModel.Collection`1.

      • setItem

        protected void setItem(int index,
                   LinkedResource item)

        Replaces the element at the specified index.

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

        public void insertItem(int index,
                      LinkedResource item)

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

        Specified by:
        insertItem in interface IGenericList<LinkedResource>
        Overrides:
        insertItem in class Collection<LinkedResource>
        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:
        ArgumentOutOfRangeException - index is less than zero. -or- index is greater than P:System.Collections.ObjectModel.Collection`1.Count.