Interface IList2

  • All Superinterfaces:
    com4j.Com4jObject

    public interface IList2
    extends com4j.Com4jObject
    Adds to the IList interface missing basic functionality.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void clear()
      Removes all the items from the list.
      void copyFrom​(com4j.stdole.IEnumVARIANT source, int count)
      Replaces the current contents with the contents of the given source enumeration.
      int indexOfItem​(Object item)
      Gets the index of the passed object.
      void item​(int index, Object rhs)
      Sets an item by index.
      • Methods inherited from interface com4j.Com4jObject

        advise, dispose, equals, getComThread, getIUnknownPointer, getPointer, getPtr, hashCode, is, queryInterface, setName, toString
    • Method Detail

      • item

        void item​(int index,
                  Object rhs)

        Sets an item by index. The index is one-based and must be within the element range.

        Setter method for the COM property "Item"

        Parameters:
        index - Mandatory int parameter.
        rhs - Mandatory java.lang.Object parameter.
      • clear

        void clear()

        Removes all the items from the list.

      • indexOfItem

        int indexOfItem​(Object item)

        Gets the index of the passed object.

        Parameters:
        item - Mandatory java.lang.Object parameter.
        Returns:
        Returns a value of type int
      • copyFrom

        void copyFrom​(com4j.stdole.IEnumVARIANT source,
                      int count)

        Replaces the current contents with the contents of the given source enumeration. Items are copied in chunks of 100 pieces each.

        Parameters:
        source - Mandatory IEnumVARIANT parameter.
        count - Mandatory int parameter.