接口 IShapes
IShape
objects on the specified sheet.-
方法概要
修饰符和类型方法说明addCameraPicture
(String reference, double left, double top) Creates a picture from reference range.addCameraPicture
(String reference, double left, double top, double width, double height) Creates a picture from reference range.addCameraPicture
(String reference, IRange range) Creates a picture from reference range to the specified range on the current sheet.addCameraPicture
(String reference, String name, double left, double top) Creates a picture from reference range.Returns theIShape
object that represents the new picture.addCameraPicture
(String reference, String name, double left, double top, double width, double height) Creates a picture from reference range.Returns theIShape
object that represents the new picture.addCameraPicture
(String reference, String name, IRange range) Creates a picture from reference range to the specified range on the current sheet.Creates a chart at the specified location on the active sheet.Creates a chart at the specified range on the current sheet.Creates a chart at the specified location on the active sheet.Creates a chart at the specified range on the current sheet.addChartInPixel
(ChartType chartType, double left, double top, double width, double height) Creates a chart at the specified location on the active sheet.addChartInPixel
(String name, ChartType chartType, double left, double top, double width, double height) Creates a chart at the specified location on the active sheet.addConnector
(ConnectorType type, double beginX, double beginY, double endX, double endY) Creates a connector.addConnector
(ConnectorType type, IRange range) Creates a connector at the specified range on the current sheet.addConnector
(String name, ConnectorType type, double beginX, double beginY, double endX, double endY) Creates a connector.addConnector
(String name, ConnectorType type, IRange range) Creates a connector at the specified range on the current sheet.addConnectorInPixel
(ConnectorType type, float beginX, float beginY, float endX, float endY) Creates a connector.addConnectorInPixel
(String name, ConnectorType type, float beginX, float beginY, float endX, float endY) Creates a connector.addPicture
(InputStream stream, ImageType type, double left, double top, double width, double height) Creates a picture from an existing stream.addPicture
(InputStream stream, ImageType type, IRange range) Creates a picture from an existing stream at the specified range on the current sheet.addPicture
(String filename, double left, double top, double width, double height) Creates a picture from an existing file.addPicture
(String filename, IRange range) Creates a picture from an existing file at the specified range on the current sheet.addPicture
(String name, InputStream stream, ImageType type, double left, double top, double width, double height) Creates a picture from an existing stream.addPicture
(String name, InputStream stream, ImageType type, IRange range) Creates a picture from an existing stream at the specified range on the current sheet.addPicture
(String name, String filename, double left, double top, double width, double height) Creates a picture from an existing file.addPicture
(String name, String filename, IRange range) Creates a picture from an existing file at the specified range on the current sheet.addPictureInPixel
(InputStream stream, ImageType type, double left, double top, double width, double height) Creates a picture from an existing stream.addPictureInPixel
(String filename, double left, double top, double width, double height) Creates a picture from an existing file.addPictureInPixel
(String name, InputStream stream, ImageType type, double left, double top, double width, double height) Creates a picture from an existing stream.addPictureInPixel
(String name, String filename, double left, double top, double width, double height) Creates a picture from an existing file.addShape
(AutoShapeType type, double left, double top, double width, double height) Returns theIShape
object that represents the new AutoShape in aworksheet.addShape
(AutoShapeType type, IRange range) Returns theIShape
object that represents the new AutoShapeat the specified range on the current sheet.addShape
(String name, AutoShapeType type, double left, double top, double width, double height) Returns theIShape
object that represents the new AutoShape in aworksheet.addShape
(String name, AutoShapeType type, IRange range) Returns theIShape
object that represents the new AutoShapeat the specified range on the current sheet.addShapeInPixel
(AutoShapeType type, double left, double top, double width, double height) Returns theIShape
object that represents the new AutoShape in aworksheet.addShapeInPixel
(String name, AutoShapeType type, double left, double top, double width, double height) Returns theIShape
object that represents the new AutoShape in aworksheet.get
(int index) Returns a single object from a collection.Returns a single object from a collection.int
getCount()
Returns the number of objects in the collection.getRange
(int[] index) Returns a ShapeRange object that represents a subset of the shapes in a Shapes collection.Returns a ShapeRange object that represents a subset of the shapes in a Shapes collection.从接口继承的方法 java.lang.Iterable
forEach, iterator, spliterator
-
方法详细资料
-
getRange
Returns a ShapeRange object that represents a subset of the shapes in a Shapes collection. -
getRange
Returns a ShapeRange object that represents a subset of the shapes in a Shapes collection. -
get
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. -
addChart
Creates a chart at the specified location on the active sheet.- 参数:
chartType
- The chart typeleft
- The distance, in points, from the left edge of the object to theleft edge of column A (on a worksheet) or the left edge of the chart area (on a chart).top
- The distance, in points, from the top edge of the top most shapein the shape range to the top edge of the worksheet.width
- The width, in points, of the objectheight
- The height, in points, of the object- 返回:
- The
IShape
object.
-
addChart
Creates a chart at the specified range on the current sheet.The sheet of targetRange and the sheet of the shape being added must be the same sheet.
- 参数:
chartType
- The chart typerange
- The target range of the current sheet.- 返回:
- The
IShape
object.
-
addChart
IShape addChart(String name, ChartType chartType, double left, double top, double width, double height) Creates a chart at the specified location on the active sheet.- 参数:
name
- * The chart namechartType
- The chart typeleft
- The distance, in points, from the left edge of the object to theleft edge of column A (on a worksheet) or the left edge of the chart area (on a chart).top
- The distance, in points, from the top edge of the top most shapein the shape range to the top edge of the worksheet.width
- The width, in points, of the objectheight
- The height, in points, of the object- 返回:
- The
IShape
object.
-
addChart
Creates a chart at the specified range on the current sheet.The sheet of targetRange and the sheet of the shape being added must be the same sheet.
- 参数:
name
- * The chart namechartType
- The chart typerange
- The target range of the current sheet.
-
addPicture
IShape addPicture(String filename, double left, double top, double width, double height) throws IOException Creates a picture from an existing file. Returns theIShape
objectthat represents the new picture.- 参数:
filename
- The file from which the object is to be createdleft
- The position (in points) of the upper-left corner of the picturerelative to the upper-left corner of the document.top
- The position (in points) of the upper-left corner of the picturerelative to the top of the document.width
- The width of the picture, in points.height
- The height of the picture, in points.- 返回:
- The
IShape
object. - 抛出:
IOException
-
addPicture
Creates a picture from an existing file at the specified range on the current sheet.The sheet of targetRange and the sheet of the shape being added must be the same sheet.
Returns the
IShape
object that represents the new picture.- 参数:
filename
- The file from which the object is to be createdrange
- The target range of the current sheet.- 返回:
- The
IShape
object. - 抛出:
IOException
-
addPicture
IShape addPicture(String name, String filename, double left, double top, double width, double height) throws IOException Creates a picture from an existing file. Returns theIShape
objectthat represents the new picture.- 参数:
name
- The picture namefilename
- The file from which the object is to be createdleft
- The position (in points) of the upper-left corner of the picturerelative to the upper-left corner of the document.top
- The position (in points) of the upper-left corner of the picturerelative to the top of the document.width
- The width of the picture, in points.height
- The height of the picture, in points.- 返回:
- The
IShape
object. - 抛出:
IOException
-
addPicture
Creates a picture from an existing file at the specified range on the current sheet.The sheet of targetRange and the sheet of the shape being added must be the same sheet.
Returns the
IShape
object that represents the new picture.- 参数:
name
- The picture namefilename
- The file from which the object is to be createdrange
- The target range of the current sheet.- 返回:
- The
IShape
object. - 抛出:
IOException
-
addPicture
IShape addPicture(InputStream stream, ImageType type, double left, double top, double width, double height) throws IOException Creates a picture from an existing stream. Returns theIShape
objectthat represents the new 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 picturerelative to the upper-left corner of the document.top
- The position (in points) of the upper-left corner of the picturerelative to the top of the document.width
- The width of the picture, in points.height
- The height of the picture, in points.- 返回:
- The
IShape
object. - 抛出:
IOException
-
addPicture
Creates a picture from an existing stream at the specified range on the current sheet.The sheet of targetRange and the sheet of the shape being added must be the same sheet.
Returns the
IShape
object that represents the new picture.- 参数:
stream
- The stream from which the object is to be created.type
- Specifies the type of picture to create.range
- The target range of the current sheet.- 返回:
- The
IShape
object. - 抛出:
IOException
-
addPicture
IShape addPicture(String name, InputStream stream, ImageType type, double left, double top, double width, double height) throws IOException Creates a picture from an existing stream. Returns theIShape
objectthat represents the new picture.- 参数:
name
- The picture namestream
- 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 picturerelative to the upper-left corner of the document.top
- The position (in points) of the upper-left corner of the picturerelative to the top of the document.width
- The width of the picture, in points.height
- The height of the picture, in points.- 返回:
- The
IShape
object. - 抛出:
IOException
-
addPicture
Creates a picture from an existing stream at the specified range on the current sheet.The sheet of targetRange and the sheet of the shape being added must be the same sheet.
Returns the
IShape
object that represents the new picture.- 参数:
name
- The picture namestream
- The stream from which the object is to be created.type
- Specifies the type of picture to create.range
- The target range of the current sheet.- 返回:
- The
IShape
object. - 抛出:
IOException
-
addShape
Returns theIShape
object that represents the new AutoShape in aworksheet.- 参数:
type
- Specifies the type of AutoShape to create.left
- The position (in points) of the upper-left corner of theAutoShape's boundary box relative to the upper-left corner of the document.top
- The position (in points) of the upper-left corner of theAutoShape's boundary box relative to the upper-left corner of the document.width
- The width and height of the AutoShape's boundary box, in points.height
- The width and height of the AutoShape's boundary box, in points.- 返回:
- The
IShape
object.
-
addShape
Returns theIShape
object that represents the new AutoShapeat the specified range on the current sheet.The sheet of targetRange and the sheet of the shape being added must be the same sheet.
- 参数:
type
- Specifies the type of AutoShape to create.range
- The target range of the current sheet.- 返回:
- The
IShape
object.
-
addShape
IShape addShape(String name, AutoShapeType type, double left, double top, double width, double height) Returns theIShape
object that represents the new AutoShape in aworksheet.- 参数:
name
- The shape nametype
- Specifies the type of AutoShape to create.left
- The position (in points) of the upper-left corner of theAutoShape's boundary box relative to the upper-left corner of the document.top
- The position (in points) of the upper-left corner of theAutoShape's boundary box relative to the upper-left corner of the document.width
- The width and height of the AutoShape's boundary box, in points.height
- The width and height of the AutoShape's boundary box, in points.- 返回:
- The
IShape
object.
-
addShape
Returns theIShape
object that represents the new AutoShapeat the specified range on the current sheet.The sheet of targetRange and the sheet of the shape being added must be the same sheet.
- 参数:
name
- The shape nametype
- Specifies the type of AutoShape to create.range
- The target range of the current sheet.- 返回:
- The
IShape
object.
-
addConnector
Creates a connector. Returns theIShape
object that represents thenew connector.- 参数:
type
- The connector type to add.beginX
- The horizontal position (in points) of the connector's startingpoint relative to the upper-left corner of the document.beginY
- The vertical position (in points) of the connector's startingpoint relative to the upper-left corner of the document.endX
- The horizontal position (in points) of the connector's end pointrelative to the upper-left corner of the document.endY
- The veritcal position (in points) of the connector's end pointrelative to the upper-left corner of the document.- 返回:
- The
IShape
object.
-
addConnector
Creates a connector at the specified range on the current sheet.The sheet of targetRange and the sheet of the shape being added must be the same sheet.
Returns the
IShape
object that represents the new connector.- 参数:
type
- The connector type to add.range
- The target range of the current sheet.- 返回:
- The
IShape
object.
-
addConnector
IShape addConnector(String name, ConnectorType type, double beginX, double beginY, double endX, double endY) Creates a connector. Returns theIShape
object that represents thenew connector.- 参数:
name
- The connector nametype
- The connector type to add.beginX
- The horizontal position (in points) of the connector's startingpoint relative to the upper-left corner of the document.beginY
- The vertical position (in points) of the connector's startingpoint relative to the upper-left corner of the document.endX
- The horizontal position (in points) of the connector's end pointrelative to the upper-left corner of the document.endY
- The veritcal position (in points) of the connector's end pointrelative to the upper-left corner of the document.- 返回:
- The
IShape
object.
-
addConnector
Creates a connector at the specified range on the current sheet.The sheet of targetRange and the sheet of the shape being added must be the same sheet.
Returns the
IShape
object that represents the new connector.- 参数:
name
- The connector nametype
- The connector type to add.range
- The target range of the current sheet.- 返回:
- The
IShape
object.
-
addChartInPixel
Creates a chart at the specified location on the active sheet.- 参数:
chartType
- The chart typeleft
- The distance, in pixels, from the left edge of the object to theleft edge of column A (on a worksheet) or the left edge of the chart area (on a chart).top
- The distance, in pixels, from the top edge of the top most shape inthe shape range to the top edge of the worksheet.width
- The width, in pixels, of the objectheight
- The height, in pixels, of the object- 返回:
- The
IShape
object.
-
addChartInPixel
IShape addChartInPixel(String name, ChartType chartType, double left, double top, double width, double height) Creates a chart at the specified location on the active sheet.- 参数:
name
- The chart namechartType
- The chart typeleft
- The distance, in pixels, from the left edge of the object to theleft edge of column A (on a worksheet) or the left edge of the chart area (on a chart).top
- The distance, in pixels, from the top edge of the top most shape inthe shape range to the top edge of the worksheet.width
- The width, in pixels, of the objectheight
- The height, in pixels, of the object- 返回:
- The
IShape
object.
-
addPictureInPixel
IShape addPictureInPixel(String filename, double left, double top, double width, double height) throws IOException Creates a picture from an existing file. Returns theIShape
objectthat represents the new picture.- 参数:
filename
- The file from which the object is to be createdleft
- The position (in pixels) of the upper-left corner of the picturerelative to the upper-left corner of the document.top
- The position (in pixels) of the upper-left corner of the picturerelative to the top of the document.width
- The width of the picture, in pixels.height
- The height of the picture, in pixels.- 返回:
- The
IShape
object. - 抛出:
IOException
-
addPictureInPixel
IShape addPictureInPixel(String name, String filename, double left, double top, double width, double height) throws IOException Creates a picture from an existing file. Returns theIShape
objectthat represents the new picture.- 参数:
name
- The picture namefilename
- The file from which the object is to be createdleft
- The position (in pixels) of the upper-left corner of the picturerelative to the upper-left corner of the document.top
- The position (in pixels) of the upper-left corner of the picturerelative to the top of the document.width
- The width of the picture, in pixels.height
- The height of the picture, in pixels.- 返回:
- The
IShape
object. - 抛出:
IOException
-
addPictureInPixel
IShape addPictureInPixel(InputStream stream, ImageType type, double left, double top, double width, double height) throws IOException Creates a picture from an existing stream. Returns theIShape
objectthat represents the new picture.- 参数:
stream
- The stream from which the object is to be created.type
- Specifies the type of picture to create.left
- The position (in pixels) of the upper-left corner of the picturerelative to the upper-left corner of the document.top
- The position (in pixels) of the upper-left corner of the picturerelative to the top of the document.width
- The width of the picture, in pixels.height
- The height of the picture, in pixels.- 返回:
- The
IShape
object. - 抛出:
IOException
-
addPictureInPixel
IShape addPictureInPixel(String name, InputStream stream, ImageType type, double left, double top, double width, double height) throws IOException Creates a picture from an existing stream. Returns theIShape
objectthat represents the new picture.- 参数:
name
- The picture namestream
- The stream from which the object is to be created.type
- Specifies the type of picture to create.left
- The position (in pixels) of the upper-left corner of the picturerelative to the upper-left corner of the document.top
- The position (in pixels) of the upper-left corner of the picturerelative to the top of the document.width
- The width of the picture, in pixels.height
- The height of the picture, in pixels.- 返回:
- The
IShape
object. - 抛出:
IOException
-
addShapeInPixel
Returns theIShape
object that represents the new AutoShape in aworksheet.- 参数:
type
- Specifies the type of AutoShape to create.left
- The position (in pixels) of the upper-left corner of theAutoShape's boundary box relative to the upper-left corner of the document.top
- The position (in pixels) of the upper-left corner of theAutoShape's boundary box relative to the upper-left corner of the document.width
- The width and height of the AutoShape's boundary box, in pixels.height
- The width and height of the AutoShape's boundary box, in pixels.- 返回:
- The
IShape
object.
-
addShapeInPixel
IShape addShapeInPixel(String name, AutoShapeType type, double left, double top, double width, double height) Returns theIShape
object that represents the new AutoShape in aworksheet.- 参数:
name
- The shape nametype
- Specifies the type of AutoShape to create.left
- The position (in pixels) of the upper-left corner of theAutoShape's boundary box relative to the upper-left corner of the document.top
- The position (in pixels) of the upper-left corner of theAutoShape's boundary box relative to the upper-left corner of the document.width
- The width and height of the AutoShape's boundary box, in pixels.height
- The width and height of the AutoShape's boundary box, in pixels.- 返回:
- The
IShape
object.
-
addConnectorInPixel
Creates a connector. Returns theIShape
object that represents thenew connector.- 参数:
type
- The connector type to add.beginX
- The horizontal position (in pixels) of the connector's startingpoint relative to the upper-left corner of the document.beginY
- The vertical position (in pixels) of the connector's startingpoint relative to the upper-left corner of the document.endX
- The horizontal position (in pixels) of the connector's end pointrelative to the upper-left corner of the document.endY
- The veritcal position (in pixels) of the connector's end pointrelative to the upper-left corner of the document.- 返回:
- The
IShape
object.
-
addConnectorInPixel
IShape addConnectorInPixel(String name, ConnectorType type, float beginX, float beginY, float endX, float endY) Creates a connector. Returns theIShape
object that represents thenew connector.- 参数:
name
- The connector nametype
- The connector type to add.beginX
- The horizontal position (in pixels) of the connector's startingpoint relative to the upper-left corner of the document.beginY
- The vertical position (in pixels) of the connector's startingpoint relative to the upper-left corner of the document.endX
- The horizontal position (in pixels) of the connector's end pointrelative to the upper-left corner of the document.endY
- The veritcal position (in pixels) of the connector's end pointrelative to the upper-left corner of the document.- 返回:
- The
IShape
object.
-
addCameraPicture
Creates a picture from reference range. Returns theIShape
object that represents the new picture.- 参数:
reference
- The range of the picture generated fromleft
- The position (in points) of the upper-left cornerof the picture relative to the upper-left corner of the document.top
- The position (in points) of the upper-left cornerof the picture relative to the top of the document.- 返回:
- The
IShape
object.
-
addCameraPicture
Creates a picture from reference range. Returns theIShape
object that represents the new picture.- 参数:
reference
- The range of the picture generated fromleft
- The position (in points) of the upper-left cornerof the picture relative to the upper-left corner of the document.top
- The position (in points) of the upper-left cornerof the picture relative to the top of the document.width
- The width and height of the AutoShape's boundary box, in points.height
- The width and height of the AutoShape's boundary box, in points.- 返回:
- The
IShape
object.
-
addCameraPicture
Creates a picture from reference range to the specified range on the current sheet.The sheet of targetRange and the sheet of the shape being added must be the same sheet.
Returns the
IShape
object that represents the new picture.- 参数:
reference
- The range of the picture generated fromrange
- The target range of the current sheet.- 返回:
- The
IShape
object.
-
addCameraPicture
Creates a picture from reference range.Returns theIShape
object that represents the new picture.- 参数:
reference
- The range of the picture generated fromname
- The picture nameleft
- The position (in points) of the upper-left cornerof the picture relative to the upper-left corner of the document.top
- The position (in points) of the upper-left cornerof the picture relative to the top of the document.- 返回:
- The
IShape
object.
-
addCameraPicture
IShape addCameraPicture(String reference, String name, double left, double top, double width, double height) Creates a picture from reference range.Returns theIShape
object that represents the new picture.- 参数:
reference
- The range of the picture generated fromname
- The picture nameleft
- The position (in points) of the upper-left cornerof the picture relative to the upper-left corner of the document.top
- The position (in points) of the upper-left cornerof the picture relative to the top of the document.width
- The width and height of the AutoShape's boundary box, in points.height
- The width and height of the AutoShape's boundary box, in points.- 返回:
- The
IShape
object.
-
addCameraPicture
Creates a picture from reference range to the specified range on the current sheet.The sheet of targetRange and the sheet of the shape being added must be the same sheet.
Returns the
IShape
object that represents the new picture.- 参数:
reference
- The range of the picture generated fromname
- The picture namerange
- The target range of the current sheet.- 返回:
- The
IShape
object.
-