com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Class ControlCollection

  • java.lang.Object
    • com.aspose.slides.ControlCollection
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      IControl addControl(int controlType, float x, float y, float width, float height)
      Creates and adds a new control to the collection.
      void clear()
      Removes all controls from the collection.
      void copyTo(com.aspose.ms.System.Array array, int index)
      Copies the entire collection to the specified array.
      IControl get_Item(int index)
      Returns a control at the specified position.
      com.aspose.slides.IDOMObject getParent_Immediate()
      Returns Parent_Immediate object.
      java.lang.Object getSyncRoot()
      Returns a synchronization root.
      boolean isSynchronized()
      Returns a value indicating whether access to the collection is synchronized (thread-safe).
      com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IControl> iterator()
      Returns an enumerator that iterates through the collection.
      void remove(IControl item)
      Removes an ActiveX control from the collection.
      void removeAt(int index)
      Removes an ActiveX control stored at specified position from the collection.
      int size()
      Returns a number of objects in the collection.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Method Detail

      • size

        public final int size()

        Returns a number of objects in the collection. Read-only int.

        Specified by:
        size in interface com.aspose.ms.System.Collections.ICollection<IControl>
      • addControl

        public final IControl addControl(int controlType,
                                         float x,
                                         float y,
                                         float width,
                                         float height)

        Creates and adds a new control to the collection.

        Specified by:
        addControl in interface IControlCollection
        Parameters:
        controlType - Type of a control to add.
        x - The X-coordinate for a left side of shape's frame.
        y - The Y-coordinate for a top side of shape's frame.
        width - The width of shape's frame.
        height - The height of shape's frame.
        Returns:
        Created control.
      • remove

        public final void remove(IControl item)

        Removes an ActiveX control from the collection.

        Specified by:
        remove in interface IControlCollection
        Parameters:
        item - A control to remove.
      • removeAt

        public final void removeAt(int index)

        Removes an ActiveX control stored at specified position from the collection.

        Specified by:
        removeAt in interface IControlCollection
        Parameters:
        index - Index of a control to remove.
      • clear

        public final void clear()

        Removes all controls from the collection.

        Specified by:
        clear in interface IControlCollection
      • get_Item

        public final IControl get_Item(int index)

        Returns a control at the specified position.

        Specified by:
        get_Item in interface IControlCollection
        Parameters:
        index - Index of a control.
      • iterator

        public final com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IControl> iterator()

        Returns an enumerator that iterates through the collection.

        Specified by:
        iterator in interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable<IControl>
        Specified by:
        iterator in interface com.aspose.ms.System.Collections.IEnumerable<IControl>
        Specified by:
        iterator in interface java.lang.Iterable<IControl>
        Returns:
        A System.Collections.Generic.IEnumerator`1 that can be used to iterate through the collection.
      • copyTo

        public final void copyTo(com.aspose.ms.System.Array array,
                                 int index)

        Copies the entire collection to the specified array.

        Specified by:
        copyTo in interface com.aspose.ms.System.Collections.ICollection<IControl>
        Parameters:
        array - Target array
        index - Index in the target array.
      • isSynchronized

        public final boolean isSynchronized()

        Returns a value indicating whether access to the collection is synchronized (thread-safe). Read-only boolean.

        Specified by:
        isSynchronized in interface com.aspose.ms.System.Collections.ICollection<IControl>
      • getSyncRoot

        public final java.lang.Object getSyncRoot()

        Returns a synchronization root. Read-only Object.

        Specified by:
        getSyncRoot in interface com.aspose.ms.System.Collections.ICollection<IControl>
      • getParent_Immediate

        public final com.aspose.slides.IDOMObject getParent_Immediate()

        Returns Parent_Immediate object. Read-only IDOMObject.