概述 | 软件包 | 类 | 树 | 索引 | 帮助

上一个类 下一个类 | 框架 无框架
摘要： 嵌套 | 字段 | 构造函数 | 方法 | 详细信息： 字段 | 构造函数 | 方法

## application.workbooks.workbook.presentations.presentation.slide.pgshapes
类 PgShapeRange

    java.lang.Object
      application.workbooks.workbook.shapes.ShapeRange
          application.workbooks.workbook.presentations.presentation.slide.pgshapes.PgShapeRange

    public class PgShapeRange

extends application.workbooks.workbook.shapes.ShapeRange

该类是简报中图形对象接口。

方法摘要
`boolean` | `isRelative()` 返回对齐或分布是否相对于幻灯片。
`void` | `setRelative(boolean relativeTo)` 设置对齐或分布是否相对于幻灯片。

从类 application.workbooks.workbook.shapes.ShapeRange 继承的方法
`applyFont, beginEdit, changeCase, changeConnector, changeOrder, changeType, clearAll, copyFormatInfo, decreaseFontSize, delete, deleteSelect, duplicate, flipHorizontal, flipVertical, getActiveText, getAlternativeText, getCanDelete, getConnectFormat, getDataObject, getFillAttribute, getFillFormat, getHalfDrag, getHeight, getHeightDoubleValue, getHorAlignLeft, getHorAlignLeftByCentimeters, getImage, getLineFormat, getNodes, getOrientationIndex, getPictureFormat, getPlugID, getPlugInData, getPlugSubID, getPrintCount, getRelativeHorizontalPosition, getRelativeVerAlignPosition, getRotateAngle, getShadowFormat, getShapeContent, getTextBoxAnchorPoint, getTextEffectFormat, getThreeDFormat, getVerAlignTop, getVerAlignToptByCentimeters, getWidth, getWidthDoubleValue, group, increaseFontSize, isAllOverlap, isCanCopy, isCanFlip, isCanGroup, isCanMoveLocation, isCanRotate, isConnectable, isEditable, isGroup, isLockLocation, isLockRatio, isLockSize, isMovedByText, isPicture, isPrintShape, isSeal, isTextEffect, move, move, moveByValue, pasteFormatInfo, reGroup, reShape, select, setAlignBottom, setAlignHorizontallyCenter, setAlignLeft, setAlignment, setAlignRight, setAlignTop, setAlignVerticallyCenter, setAllowOverlap, setAlternativeText, setAnchorLock, setAutoSize, setBold, setBorderFormat, setBulletVisible, setCanCopy, setCanDelete, setCanFlip, setCanGroup, setCanMoveLocation, setCanRotate, setDefaultProperties, setDistribute, setFillAttribute, setFontEffect, setFontFamily, setFontForeground, setFontSize, setFontSize, setHalfDrag, setHeight, setHorAlignLeft, setHorAlignLeftByCentimeters, setHorizonAlignment, setImage, setItalic, setLayoutIndex, setLevelDown, setLevelLeft, setLevelRight, setLevelUp, setLocation, setLockLocation, setLockRatio, setLockSize, setMovedByText, setNumberVisible, setObjectPosition, setOrientationIndex, setParagraphFormat, setPlugID, setPlugInData, setPlugSubID, setPosition, setPositionLocked, setPrintCount, setPrintShape, setRelativeHorizontalPosition, setRelativeVerAlignPosition, setRotateAngle, setRotateAngleByDegree, setShadeEffect, setShadingFormat, setSign, setSurroundType, setTextBoxAnchorPoint, setTextBoxMarginBottom, setTextBoxMarginLeft, setTextBoxMarginRight, setTextBoxMarginTop, setTextFixShape, setTextRotateWithShape, setUnderline, setVerAlignTop, setVerAlignTopByCentimeters, setVerifySeal, setWidth, setWordWrap, simpleToTraditionalChinese, stopEdit, traditionalToSimpleChinese, unGroup, unSelect`

从类 java.lang.Object 继承的方法
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

方法详细信息

### isRelative

    public boolean isRelative()

  返回对齐或分布是否相对于幻灯片。

  返回：
    布尔型值 true，对齐或分布相对于幻灯片；false，对齐或分布不相对于幻灯片

    例子：

         //在控制台输出对齐或分布是否相对于幻灯片。
         Shapes shapes = Application.getWorkbooks().getActiveWorkbook().getActiveShapes();
         shapes.addShape(1,200,200,400,400);
         shapes.addShape(2,500,500,600,600);
         shapes.selectAll();
         PgShapeRange shaperange = shapes.getRange();
         shaperange.setRelative(true);
         System.out.println("isRelative:" + shaperange.isRelative());

### setRelative

    public void setRelative(boolean relativeTo)

  设置对齐或分布是否相对于幻灯片。

  参数：
    `relativeTo` - 布尔开型值，true，对齐或分布相对于幻灯片；false，对齐或分布不相对于幻灯片

    例子：

         //设置对齐或分布对应于幻灯片。
         Shapes shapes = Application.getWorkbooks().getActiveWorkbook().getActiveShapes();
         shapes.addShape(1,200,200,400,400);
         shapes.addShape(2,500,500,600,600);
         shapes.selectAll();
         PgShapeRange shaperange = shapes.getRange();
         shaperange.setRelative(true);

概述 | 软件包 | 类 | 树 | 索引 | 帮助

上一个类 下一个类 | 框架 无框架
摘要： 嵌套 | 字段 | 构造函数 | 方法 | 详细信息： 字段 | 构造函数 | 方法

版权所有 2001-2008 无锡永中科技有限公司