接口 IBackgroundPictures

所有超级接口:
Iterable<IBackgroundPicture>

public interface IBackgroundPictures extends Iterable<IBackgroundPicture>
A collection of all the IBackgroundPicture objects on the specified sheet.
  • 方法详细资料

    • get

      IBackgroundPicture get(int index)
      Returns a single object from a collection.
      参数:
      index - Required int. The index number for the object.
    • get

      Returns a single object from a collection.
      参数:
      name - Required string. The name for the object.
    • getCount

      int getCount()
      Returns the number of objects in the collection.
    • addPicture

      IBackgroundPicture addPicture(String filename, double left, double top, double width, double height) throws IOException
      Creates a background picture from an existing file. Returns the IBackgroundPicture objectthat represents the new background picture.
      参数:
      filename - The file from which the object is to be created
      left - The position (in points) of the upper-left corner of the destination rectanglerelative to the upper-left corner of the document.
      top - The position (in points) of the upper-left corner of the destination rectanglerelative to the top of the document.
      width - The width of the destination rectangle, in points.
      height - The height of the destination rectangle, in points.
      返回:
      The IBackgroundPictureThe object.
      抛出:
      IOException
    • addPicture

      IBackgroundPicture addPicture(InputStream stream, ImageType type, double left, double top, double width, double height) throws IOException
      Creates a background picture from an existing stream. Returns the IBackgroundPicture objectthat represents the new background picture.
      参数:
      stream - The stream from which the object is to be created.
      type - Specifies the type of background picture to create.
      left - The position (in points) of the upper-left corner of the destination rectanglerelative to the upper-left corner of the document.
      top - The position (in points) of the upper-left corner of the destination rectanglerelative to the top of the document.
      width - The width of the destination rectangle, in points.
      height - The height of the destination rectangle, in points.
      返回:
      The IBackgroundPictureThe object.
      抛出:
      IOException
    • addPictureInPixel

      IBackgroundPicture addPictureInPixel(String filename, double left, double top, double width, double height) throws IOException
      Creates a background picture from an existing file. Returns the IBackgroundPicture objectthat represents the new background picture.
      参数:
      filename - The file from which the object is to be created
      left - The position (in pixels) of the upper-left corner of the destination rectanglerelative to the upper-left corner of the document.
      top - The position (in pixels) of the upper-left corner of the destination rectanglerelative to the top of the document.
      width - The width of the destination rectangle, in pixels.
      height - The height of the destination rectangle, in pixels.
      返回:
      The IBackgroundPicture object.
      抛出:
      IOException
    • addPictureInPixel

      IBackgroundPicture addPictureInPixel(InputStream stream, ImageType type, double left, double top, double width, double height) throws IOException
      Creates a background picture from an existing stream. Returns the IBackgroundPicture objectthat represents the new background picture.
      参数:
      stream - The stream from which the object is to be created.
      type - Specifies the type of picture to create.
      left - The position (in points) of the upper-left corner of the destination rectanglerelative to the upper-left corner of the document.
      top - The position (in points) of the upper-left corner of the destination rectanglerelative to the top of the document.
      width - The width of the destination rectangle, in points.
      height - The height of the destination rectangle, in points.
      返回:
      The IShape object.
      抛出:
      IOException