ShapeCollection

ShapeCollection — Aspose.Slides FOSS for Java API Reference

BoundingBoxExtent ShapeCollection class はスライド上のシェイプのコレクションを表します。実装しています IShapeCollection および Iterable<IShape>.

BoundingBoxExtent: org.aspose.slides.foss

import org.aspose.slides.foss.*;
public class ShapeCollection implements IShapeCollection, Iterable<IShape>

BoundingBoxExtent

BoundingBoxExtent

BoundingBoxExtentBoundingBoxExtentBoundingBoxExtent
get(int index)IShapeゼロベースのインデックスでシェイプを取得します。.
size()intシェイプの数。.
indexOf(IShape shape)int指定されたシェイプのインデックス、または -1。.
iterator()Iterator<IShape>すべてのシェイプを反復処理します。.

ThreeDFormat クラスは、ベベル、押し出しの深さ、輪郭、カメラ位置、照明、マテリアルなど、シェイプの 3-D ビジュアル効果を制御します。Shape.ThreeDFormat でアクセスできます。

BoundingBoxExtentBoundingBoxExtentBoundingBoxExtent
addAutoShape(ShapeType, double x, double y, double w, double h)IAutoShapeオートシェイプを追加します。.
addAutoShape(ShapeType, double x, double y, double w, double h, boolean createFromTemplate)IAutoShapeテンプレートオプション付きのオートシェイプを追加します。.
addConnector(ShapeType, double x, double y, double w, double h)IConnectorコネクタシェイプを追加します。.
addPictureFrame(ShapeType, double x, double y, double w, double h, IPPImage image)IPictureFrame画像フレームを追加します。.
addTable(double x, double y, double[] colWidths, double[] rowHeights)ITableテーブルを追加します。.

パッケージ: Aspose.Slides.Foss (net9.0)

BoundingBoxExtentBoundingBoxExtentBoundingBoxExtent
insertAutoShape(int index, ShapeType, double x, double y, double w, double h)IAutoShape指定されたインデックスに auto shape を挿入します。.
insertConnector(int index, ShapeType, double x, double y, double w, double h)IConnector指定されたインデックスに connector を挿入します。.
insertPictureFrame(int index, ShapeType, double x, double y, double w, double h, IPPImage image)IPictureFrame指定されたインデックスに picture frame を挿入します。.
insertTable(int index, double x, double y, double[] colWidths, double[] rowHeights)ITable指定されたインデックスに table を挿入します。.

BoundingBoxExtent

BoundingBoxExtentBoundingBoxExtentBoundingBoxExtent
reorderSingle(int newIndex, IShape shape)voidshape を新しい z-order の位置に移動します。.

使用例

PVIObjectThreeDFormat

import org.aspose.slides.foss.*;

Presentation prs = new Presentation();
ISlide slide = prs.getSlides().get(0);
IShapeCollection shapes = slide.getShapes();

IAutoShape rect = shapes.addAutoShape(ShapeType.RECTANGLE, 50, 50, 200, 100);
rect.addTextFrame("Rectangle");

IAutoShape ellipse = shapes.addAutoShape(ShapeType.ELLIPSE, 300, 50, 100, 100);

System.out.println("Shape count: " + shapes.size());
prs.save("shapes.pptx", SaveFormat.PPTX);

関連クラス

double[] colWidths = {100, 100, 100};
double[] rowHeights = {30, 30, 30};
ITable table = slide.getShapes().addTable(50, 200, colWidths, rowHeights);

参照

 日本語