com.aspose.words

Class CustomPartCollection

  • java.lang.Object
    • com.aspose.words.CustomPartCollection
  • All Implemented Interfaces:
    java.lang.Iterable
    public class CustomPartCollection 
    extends java.lang.Object

Represents a collection of CustomPart objects.

You do not normally need to create instances of this class. You access custom parts related to the OOXML package via the Document.PackageCustomParts property.

See Also:
CustomPart, Document.PackageCustomParts

Constructor Summary
 
Property Getters/Setters Summary
intgetCount()
Gets the number of elements contained in the collection.
CustomPartget(int index)
void
set(intindex, CustomPart value)
           Gets or sets an item at the specified index.
 
Method Summary
voidadd(CustomPart part)
Adds an item to the collection.
voidclear()
Removes all elements from the collection.
CustomPartCollectiondeepClone()
Makes a deep copy of this collection and its items.
java.util.Iterator<CustomPart>iterator()
Returns an iterator object that can be used to iterate over all items in the collection.
voidremoveAt(int index)
Removes an item at the specified index.
 

    • Constructor Detail

      • CustomPartCollection

        public CustomPartCollection()
    • Property Getters/Setters Detail

      • getCount

        public int getCount()
        
        Gets the number of elements contained in the collection.
      • get/set

        public CustomPart get(int index) / public void set(int index, CustomPart value)
        
        Gets or sets an item at the specified index.
        Parameters:
        index - Zero-based index of the item.
    • Method Detail

      • add

        public void add(CustomPart part)
        Adds an item to the collection.
        Parameters:
        part - The item to add.
      • clear

        public void clear()
        Removes all elements from the collection.
      • deepClone

        public CustomPartCollection deepClone()
        Makes a deep copy of this collection and its items.
      • iterator

        public java.util.Iterator<CustomPart> iterator()
        Returns an iterator object that can be used to iterate over all items in the collection.
      • removeAt

        public void removeAt(int index)
        Removes an item at the specified index.
        Parameters:
        index - The zero based index.